January 21, 2020, 11:50:42 AM

News : LinuxSolved.com Linux Help Community Forum..

Author Topic: sftp/scp without password  (Read 3239 times)

Offline chuikingman

  • Linux Noob !
  • *
  • Posts: 6
sftp/scp without password
« on: August 19, 2009, 12:10:51 PM »
   I want to use sftp/scp without password in redhat linux.How can I do that ??I plan to to use sftp/scp in script and execute by cronjob ???any sample or example script ???
How can I test sftp/scp in the same user account ,. in the same linux server ????


Offline pedro

  • Linux Noob !
  • *
  • Posts: 14
Re: sftp/scp without password
« Reply #1 on: September 02, 2009, 03:03:52 PM »
1. In the client type "ssh-keygen -t rsa". This generates a couple of files, you're interested in /home/username1/.ssh/id_rsa.pub.
2. Append the .pub file to the remote file /home/username2/.ssh/authorized_keys
3. That's it!
(username1 is the user name in the client, and username2 is the user name on the server)

Check for more detailed instructions: