I expected that ssh will apply the ubuntu user when it's connecting to the bastion and will only apply core user when it's connecting to the target server. Your Putty SSH session You will need to configure an SSH session to the jumphost server And set up a tunnel, mapping your local port 1521 to the port 1521 of the jumphost server Use this Putty session to log in to the jumphost server with user myusr 2. Heres an example where I copy my ssh key to via the jump host : ssh-copy-id -o password: Number of key (s) added: 1. the-key.pem type -1ĭebug1: identity file. By using the ProxyJump option you can use ssh-copy-id to copy your key to a host via jump host. The attempt to connect to the server via the bastion is failing, because ssh applies wrong username: $ ssh -vvF ssh.cfg 10.250.198.76ĭebug1: Reading configuration data ssh.cfgĭebug1: ssh.cfg line 1: Applying options for bastionĭebug2: resolve_canonicalize: hostname xx.yyy.169.100 is addressĭebug1: Connecting to xx.yyy.169.100 port 22.ĭebug1: identity file. Given the following ssh.cfg: Host bastion
0 Comments
Leave a Reply. |