Autologin using jumphost and SSH keys

Autologin using jumphost and SSH keys

avatar

Hello all. I have one question which I hope I can correctly state the issue. We have a bastion host which we login to with standard user ID's. We then login to a priv account which then allows us to login to any host on our network without a password. Why this is done is for keylogging purposes and the bastion host is the only one where we have standard accounts. My question is how can I use this single SSH connection with the escalated priv's and run an SSH connect using this connection for all hosts.

Here is what it looks like....

1) Login to bastion host using standard account
2) When authenticated, 'run ssh -Y <privaccount>@localhost' (This enables keystroke logging)
3) run 'ssh <hostname>' (Allows me to login to any host without a password)

Now I have everything working up to step 2 using after connect events by sending the ssh command with a few delays and a macro password. But I'm having issues trying to figure out if I can use another connection but go thru this one bastion host connection and have it send the proper ssh <hostname> command and then login to the appropriate server. Maybe this cannot be done but I thought I would post and see.

Also too, it is possible to use the credential repository for the password rather than using the macro password? Didn't seem like I could select which credential to use in the connection if it's different from the standard SSH connection, which it is.

Thanks for any help you can provide.

Glen
edited by glenc on 5/7/2015

All Comments (1)

avatar

Hello,

Challenge accepted!

But I think it would be best to have a gotomeeting to really see all the ins and outs of what you are asking.

Please PM us your email, or contact us at support@devolutions.net.

Best regards,

Maurice