ssh -t -o ProxyCommand='ssh -i ~/.ssh/id_rsa [email protected] -W %h:%p %r' -i ~/.ssh/id_rsa [email protected]
ssh -t -o ProxyCommand='ssh -i ~/.ssh/id_rsa opc@<publiIP> -W %h:%p %r' -i ~/.ssh/id_rsa opc@privateIP
From the first command I am getting output 1 :
Permission denied (publickey,gssapi-keyex,gssapi-with-mic). ssh_exchange_identification: Connection closed by remote host
From the second command I am getting output 2 :
~/.ssh/id_rsa.pub not found
Please help me to resolve this. I have created RSA public and private keys using putty.