Skip to content
krimdomu edited this page Jan 28, 2011 · 1 revision

There are 2 options to authenticate against a remote system. We recommend Key Auth.

Password Auth

If you want to use password authentication you can provide the username and password this way:

# explicit enable password authentication
pass_auth;

user "myuser";
password "mypassword";

Key Auth

Key Authentication is the preferred way.

user "myuser";
private_key "/Users/your-user/.ssh/id_rsa";
public_key "/Users/you-user/.ssh/id_rsa.pub";

If your private and public key are at the default location ($HOME/.ssh/id_rsa and $HOME/.ssh/id_rsa.pub) you only need to set user.

Clone this wiki locally