Hi,
I have an extra admin account on the FreeBSD server, with which I can su to root. Because it's very tiring to enter two long passwords I wanted to use key-based authentication.
I created a private and public key with ssh-keygen. Then I copied the private key to the other host and added the following to the .ssh/config:
When I now want to log on with ssh server I still need to enter a password. How can this be? A possible problem could be that I don't have the admin user of the server on the clients, so I usually have to use ssh 192.168.178.4 -ladmin to log on.
Regards.
I have an extra admin account on the FreeBSD server, with which I can su to root. Because it's very tiring to enter two long passwords I wanted to use key-based authentication.
I created a private and public key with ssh-keygen. Then I copied the private key to the other host and added the following to the .ssh/config:
Code:
Host server
HostName 192.168.178.4
User <admin>
Identityfile id_rsa
When I now want to log on with ssh server I still need to enter a password. How can this be? A possible problem could be that I don't have the admin user of the server on the clients, so I usually have to use ssh 192.168.178.4 -ladmin to log on.
Regards.