LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Able to use scp and ssh without entering the password (https://www.linuxquestions.org/questions/linux-newbie-8/able-to-use-scp-and-ssh-without-entering-the-password-892776/)

Drigo 07-20-2011 01:40 PM

Able to use scp and ssh without entering the password
 
So, I want to write a bash script that will allow me to scp and ssh to a different server in the network.


Though, I dont know how to get rid of the inputting passwod line if both commands, any help?

EricTRA 07-20-2011 01:49 PM

Hello,

Have a look at SSH with authentication key instead of password or Public key authentication with SSH. Those should get you started.

Kind regards,

Eric

Drigo 07-20-2011 02:13 PM

I've looked into ssh-keygen but would this work for scp?

EricTRA 07-20-2011 02:15 PM

Hello,

Since 'SCP' is a part of the SSH protocol it will work. In my work environment I only use SSH key authentication to access our servers and I use scp a lot, so I can confirm it will work.

Kind regards,

Eric

sandeep.sp 07-21-2011 12:13 AM

scp and rsync both will work without asking for password once you share your ssh keys among different machines.


All times are GMT -5. The time now is 08:50 PM.