Skip to content

askmeaboutlinux

Knowledge not shared benefits no one.

  • Home
  • About Ask Me About Linux

Convert openSSH private key for use with Putty on Windows or Mobile Phones

Geetu R. Vaswani Broadband, Computer, Encryption, Fedora, Information, Internet, Linux, Network, Security, Server, Services, Shell, Software, Windows January 14, 2011November 2, 2019 1 Minute

Windows does not have an ssh command, to help you connect to a Linux computer using SSH2. Use putty to connect to your Linux computer from a Windows computer.

Pre-requisites:

  1. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlYou have generated your key pair using openSSH as shown here, on your Linux computer.
  2. You have installed putty on your Linux computer.
  3. You have a Windows computer and a LAN with multiple computers connected to it.
1.Generate a putty formatted private key from a SSH private key
Open up a terminal window on your Linux computer. At the $ prompt, type following (commands to type in italics):
$ cd ~/.ssh <enter>
$ ls id* <enter>
$ puttygen id_rsa -o id_rsa.ppk <enter>
$ ls id* <enter>You should now find an id_rsa.ppk file in the list.
2Test connection to computer using putty on Linux
$ putty localhost -ssh -2 -P 22 -i id_rsa.ppk <enter>
3Run putty on your Windows computer
Copy the file from ~/.ssh/id_rsa.ppk to your Windows computer.You can get putty for windows from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. Now run putty on your windows computer and use the above key file to enable authentication with your Linux computer.You should be able to see the $ prompt of your Linux computer on your Windows computer.

Share this:

  • Twitter
  • Facebook

Like this:

Like Loading...

Related

  • Tagged
  • connect using SSH
  • Linux
  • openSSH
  • putty
  • remote login to server
  • s2putty
  • server
  • SSH
  • SSH-2
  • windows

Published by Geetu R. Vaswani

View all posts by Geetu R. Vaswani

Published January 14, 2011November 2, 2019

Post navigation

Previous Post Set up SSH using certificate authentication
Next Post Connect to your Computer using SSH from a Nokia E63 smart phone

@askmeaboutlinux

Tags

adb android android apps android emulator android studio applications Apps apt-get audio boot cross-platform cryptography desktop eclipse email email client encryption error evolution fedora Fedora 15 fedora 16 firefox firmware Gnome Gnome 3 gnucash gnupg GNU Privacy Guard google google drive gpg hardware install installation internet java java GUI java program key pair keyring Linux linuxmint linux mint Linux Shell mobile multimedia network openwrt package Package Manager packages privacy private key program programming public key router security services shell shell prompt software sony xperia zr swing terminal thunderbird ubuntu upgrade virtualbox windows wireless router wordpress XFCE xubuntu
Website Powered by WordPress.com.
  • Follow Following
    • askmeaboutlinux
    • Already have a WordPress.com account? Log in now.
    • askmeaboutlinux
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: