===============
1. Generate public/private RSA key pair
===============
CBS# un su
Password:
[[email protected] admin]#
[[email protected] admin]# mkdir ./.ssh
[[email protected] admin]# cd .ssh/
[[email protected] .ssh]# ssh-keygen -b 1024 -t rsa -f x80rsakey
Generating public/private rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in x80rsakey.
Your public key has been saved in x80rsakey.pub.
The key fingerprint is:
40:e8:50:ec:2f:f5:dd:46:f9:4d:b3:90:d6:2d:b4:57 [email protected] ===============
2. Copy the public key (x80rsakey.pub) contents into the authorized_keys2 file on the remote server (in this example-> 192.168.30.60)
===============
===============
3. Add the identity using ssh-add
===============
[[email protected] .ssh]# ssh-agent bash
[[email protected] .ssh]# ssh-add x80rsakey
Enter passphrase for x80rsakey:
Identity added: x80rsakey (x80rsakey)===============
4. Result: Promptless secure SSH or SCP sessions
===============
[[email protected] .ssh]# ssh 192.168.30.60 -OR-
[[email protected] .ssh]# scp <localfilename> 192.168.30.60:<destfilename>Workaround
N/A