index











zhaoyatao.com

go to bottom

putty note























how to use putty auto login a server









# 1
// use password

in Desktop right click to create a shortcut
New
    shortcut
    "C:\Program Files\PuTTY\putty.exe" root@xxx.xxx.xxx.xxx -P xxx -pw xxxxxxxxxxx


open shortcut
//done














# 2
// use ssh key

open PuTTYgen
Action
    Generate
    move your mouse wildly
    save the "Private key"
    copy the "Public key" to your server's "authorized_key" file





open PuTTY
Connection
    Data
        Auto-login username: root

    SSH
        Auth
            Credentials
            Browse to add the Private key file for authentication



Session
    Host Name: xxx.xxx.xxx.xxx
    Port: xxxxx
    Saved Session: mySession
        Save


Open



//done










back to top