Anonymous

Changes

SSH

209 bytes removed, 01:29, September 25, 2005
no edit summary
Difficulty: 3
SSH without a password Difficulty: Public-key authentication (UNIX and Mac OS X)2
To execute this solution, the reader shouldSSH from Windows : PuTTY
be comfortable with the command line 1.Find and download putty.exe on this page:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Note: Logging in without a password will save The program doesn't need to be installed; just open the file you downloaded whenever you a few seconds out of every daywant to run PuTTY. 2.Open putty.exe 3.Enter "wso.williams. It comes howeveredu" for the host, with an added security risk: if someone compromises and "SSH" for the protocol. 4.Click "Open" 5.Enter yourWSO login and password when prompted. machine, they can then log into WSO with your account 6. If this is your first time connecting from this computer, you are willing to bear might get a message like this responsibility, then read on. :
The basic idea server's host key is not cached in the registry. You have no guarantee that WSOthe server is the computer you think it is. The server's server will check for a special key on your computer every time fingerprint is: ssh-rsa 1024 7b:e5:6f:a7:f4:f9:81:62:5c:e3:1f:bf:8b:57:6c:5a If you log intrust this host, hit Yes to add the key to PuTTY's cache and if it checks outcarry on connecting. If you want to carry on connecting just once, you'll be allowed in without entering a password adding the key to the cache, hit No. Ifyou'd like a more in-depth explanationdo not trust this host, read on: hit Cancel to abandon the connection.
http://the If this is your first time, don't sweat it, just say Yes.earthIf you get this message and this is not your first time SSH'ing from this machine, you might drop us a line.li/~sgtatham/putty/0.54/htmldoc/Chapter8.html#8 For more information about host keys, read this page:
Anyway, enough chit-chat http://the. Here's how to do it: earth.li/~sgtatham/putty/0.55/htmldoc/Chapter2.html
Adapted from http://bumblebee.lcs.mit.edu/ssh2/.   1.Open a terminal 27.Generate a public key and a private key. WeYou'll copy the public key over to the server later.   $ ssh-keygen -t rsa -f ~/.ssh/id_rsa   3.When it says something like Enter passphrase (empty for no passphrase): Just press return. 4.Let's copy the public key to WSO. Type   $ scp .ssh/id_rsa.pub user@wso:~/.ssh/.   5.Cruise over to the WSO server:   $ ssh user@wso.williams.edu   6.Hop into the SSH directory:   $ cd .ssh   7.Append the key to your list of authorized keys:   $ cat id_rsa.pub >> authorized_keys2   8.Change permissions:   $ chmod 640 authorized_keys2   9.Kill the key.   $ rm id_rsa.pub  All donere in! Now you can SSH and SCP to WSO without a passwordHappy computing-Evan Miller
14
edits