Config file

To add a known server to the config file, use the following syntax:

Host mymachine
   User root
   Port 7654

There is no method to specify or provide on the command line the password in a non-interactive manner for ssh authentication using a OpenSSH built-in mechanism.



An alternative SSH server implementation is tinyssh1


Failed signing

If you get a error similar to:

sign_and_send_pubkey: signing failed for RSA "/home/foo/.ssh/id_rsa" from agent: agent refused operation Permission denied (publickey).

This might be related to permission errors. The fix is:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/*

SSH agent

If adding SSH identities with ssh-add and it fails with

Could not open a connection to your authentication agent.

Try evaluation the ssh-agent in the shell with:

$ eval "$(ssh-agent)"