Hare Krshn
Hare Krshn

Reputation: 63

ssh password replay using ~/.ssh/config

We are currently doing a POC where, ssh-key pairs is not allowed, meaning, we have to use password with strict 90 days password expiration imposed. So, as part of POC, assume the username is "acme", which is, we have to log into "bastion.example.com" host (ssh [email protected]), after logging into bastion, again we have to log into target host, yes - from bastion, we run "ssh [email protected]".

Question mark - using ~/.ssh/config, how do we achieve this especially using "password replay" so that we dont have to provide password twice. With this, we can easily pass the script or command to be executed on the target host (using proxyCommand and remoteCommand).

Please share an example where we can perform "password replay".

Upvotes: 0

Views: 80

Answers (0)

Related Questions