ssh agent to eliminate remote login password prompt

Configure and run the ssh agent to eliminate the need to manually login to a remote system to execute commands.

Ubuntu default setup comes with ssh agent automatically - you just need to configure it.

1. Generate a private key: ssh-keygen -t dsa
2. Copy this key to the correct place on the remote machine, usually this is: ~/.ssh/authorized_keys
3. Run ssh-add This require you to enter your local passphrase and your remote password. You can also set up Ubuntu to ask you this passphrase at login

ps -u <username> | grep ssh-agent

What is it and how do I use it?

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure