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? |
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 |
I've looked into ssh-keygen but would this work for scp?
|
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 |
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. |