How to use PuTTY? Short tutorial and tricks

How to use PuTTY? Short tutorial and tricks

PuTTY is used for (most often) connecting to the Linux server over SSH from the Windows client. If you just started to use DigitalOcean, the PuTTY will be your friend.

Let's get started!

  1. Download PuTTY (Note: putty.exe is a portable version - I recommend to use this one)

  2. Open the putty.exe file

  3. Type the server's IP or hostname (Step #1), select SSH (Step #2), and click to Open (Step #3)
  4. Accept the new connection (you need to accept it only first time)
  5. Type here your username (probably "root"), press enter, and type your password (right-click inserts it immediately from the clipboard)
  6. That's all! You're logged in to the server. Great job!

Tips and Tricks

  • Feel free to use the clipboard. Press right-click in the terminal window and it will immediately insert the content

  • Save your login name and type only the password
    Enter username@myhostname instead of myhostname

  • Save periodically used sessions
    Fill Steps #1, #2, #3 and #4, then click on the Save button at Step #5
  • Use KeepAlive to preventing disconnect periodically
    Note: You have to do that for every connection
  • Create the backup
    Export all PuTTY sessions by running this command in cmd as Admin
    regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham

    It will export all session to the Desktop.
    Click here to learn how to automate this process


  • Restore the backup
    Open the "putty.reg" file and add to Registry Database
  • Use Restart session instead of close the window and open it again. Press right-click on the Title bar and select Restart session

 

Get free $100 credit on DigitalOcean if you Sign Up through this link. Great possibility to try VPS (Virtual Personal Server) technology for free.

Comments