I can connect to server1 and server2 with ssh. Is it possible to connect to server1 from server2 without copy my private key to server2 with open session with server2 from my local machine?
Ssh – How to reuse ssh private key
sshssh-keys
Related Topic
- Ssh – How to add private key to SSH
- Git for Windows – How to Tell Git Where to Find Private RSA Key
- SSH Keys – Add Correct Host Key in Known Hosts for Multiple SSH Host Keys
- Ssh – What significance does the user/host at the end of an SSH public key file hold
- Ssh – Why ssh-copy-id requires private key file
Best Answer
Yes, when you run the SSH authentication agent on your local workstation and then enable forwarding of the authentication agent connection.
Doing so is not completely secure.
From the manual (
man ssh
):A server admin can also disable agent forwarding with the
AllowAgentForwarding no
option in the sshd_config.