...
To use SSH, you will need to obtain a client. If you use MacOS X, you can open up the Terminal application which is in the utilities folder. You can then use the ssh command to access one of the systems above. Linux users can also go this route. There are also GUI ssh clients. For example, many PC users like the Putty program, and many Mac users like the JellyfiSSH. Both are available from Bevoware (see our software page). To transfer files onto the file server you will need a Secure File Transfer Program (SFTP) (or you can use Windows file sharing from within the building; see the file server docs for more information. MacOS X and Linux terminal users can use the sftp command to do this. WinSCP is a good PC client, and FUGU is a good Windows client.
Using Keys
Code Block |
---|
1. generate key with
ssh-keygen -b 1024 -f ~/.ssh/tacc1 -t dsa
This creates two files called
~/.ssh/tacc1 and ~/.ssh/tacc1.pub
2. Protect these with
chmod 400 ~/.ssh/tacc1.pub
3. Transfer the .pub version of the key to ~/.ssh on the TACC systems you want to access.
2. Run
cat tacc1.pub >> authorized_keys
Make sure you use >> or else!!!!
3. Now
ssh -i ~/.ssh/tacc.pub beehive
will let you in if you type your passphrase. If you use the ~/.ssh/config file like I showed you
the other day you can add
Host beehive
Hostname beehive.ccbb.utexas.edu
User cdupree
Port 4224
IdentityFile ~/.ssh/tacc1
IdentityFile ~/.ssh/tacc2
Use the key-agent:
$ eval `ssh-agent`
Agent pid 312
Administrator@horked ~/.ssh
$ ssh-add ~/.ssh/tacc1
Enter passphrase for /home/Administrator/.ssh/tacc1:
Identity added: /home/Administrator/.ssh/tacc1 (/home/Administrator/.ssh/tacc1)