It is possible to set up SSH so that you can login or copy files without repeatedly typing your password. The setup requires several steps, but it is very convenient, especially if you are using other computers in addition to ours and need to transfer files back and forth.
ForwardX11 yes ForwardAgent yes IdentityFile ~/.ssh/id_rsa
Host remotehost User remoteuserAlternatively you can use the syntax "ssh remoteuser@remotehost".
chmod -R 700 ~/.ssh(since the directory also needs to be executable by you).
#!/bin/sh exec /usr/bin/ssh-agent /usr/bin/X11/fvwm2For KDE they should contain
#!/bin/sh exec /usr/bin/ssh-agent /usr/bin/startkdeFor Gnome they should contain
#!/bin/sh exec /usr/bin/ssh-agent /usr/bin/gnome-sessionIf you use several systems with different window managers or with commands in different places, you should add the appropriate tests using /bin/sh syntax. If any files are not found, you will not be able to login except in command line or failsafe mode, so you should check first.
If you put "ssh-add" in your startup files, you will automatically be prompted for your passphrase at login. For example, if you start fvwm in .xsession put the lines
if [ -x /usr/bin/ssh-add ]; then ssh-add $HOME/.ssh/id_rsa fi
in .xsession before calling fvwm.
With KDE you can put a link to ssh-add in ~/.kde/Autostart
With gnome, go to the gnome control center and select session properties. Then select "startup programs", "Add...", and insert "ssh-add" there.
ssh quark scp somefile remotename@remotehost:somedir scp remotename@remotehost:somefile .No additional passwords should be needed.
ssh -t quark.phy.bnl.gov ssh username@internal.machine.name