Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SFTP with public key authentication

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
I have a default redhat 9 installed using the default sftp subsystem. We have the need to authentication via public key authentication instead of username/password. Can anyone shed some information on how to accomplish this?
 
Generate a keypair with ssh-keygen and put the public key in the authorized_keys file on the remote machine.
 
no configuration settings need to be changed?
 
Most installations enable it by default since it's the most secure form of authentication it has, but you may have to enable it in /etc/ssh/sshd.conf
 
This is on a per account basis correct? .. or is this a per server thing?

 
Enabling pubkey auth is per server, installing the public keys is per user.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top