Closed bilzard closed 1 year ago
I am facing this issue since 1 month, and even I have formatted my MAC, and downgraded this issue Monterey from Ventura, its the same. but on the other hand, the SSH command via terminal works as expected
same error.
[18:51:39.948] Resolver error: Error: Connecting with SSH timed out
at g.Timeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:583947)
at Timeout._onTimeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:629238)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
[18:51:39.956] ------
@bilzard, can you run the SSH command locally via terminal and verify that works?
@santhoshcameo, could you include your full logs?
@bilzard, can you run the SSH command locally via terminal and verify that works?
@eleanorjboyd Yes.
As noted in the text, the program appears to be receiving messages after logging in to the target server. If it times out in spite of this, I assume that there is a problem with the waiting logic.
@eleanorjboyd Here it is.
Note: This is my connection string which works via local SSH terminal ( this one works )
ssh -i .ssh/delete.pem ubuntu@ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
VS code config ( this one not working )
Host ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
HostName ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
User ubuntu
IdentityFile /Users/e230-admin/.ssh/delete.pem
LOGS from VS code remote SSH
[10:06:23.646] Log Level: 2
[10:06:23.649] remote-ssh@0.92.0
[10:06:23.649] darwin x64
[10:06:23.655] SSH Resolver called for "ssh-remote+ec2-18-195-119-68.eu-central-1.compute.amazonaws.com", attempt 1
[10:06:23.656] "remote.SSH.useLocalServer": true
[10:06:23.656] "remote.SSH.path": undefined
[10:06:23.657] "remote.SSH.configFile": undefined
[10:06:23.657] "remote.SSH.useFlock": true
[10:06:23.657] "remote.SSH.lockfilesInTmp": false
[10:06:23.657] "remote.SSH.localServerDownload": auto
[10:06:23.657] "remote.SSH.remoteServerListenOnSocket": false
[10:06:23.658] "remote.SSH.showLoginTerminal": false
[10:06:23.658] "remote.SSH.defaultExtensions": []
[10:06:23.658] "remote.SSH.loglevel": 2
[10:06:23.658] "remote.SSH.enableDynamicForwarding": true
[10:06:23.658] "remote.SSH.enableRemoteCommand": false
[10:06:23.659] "remote.SSH.serverPickPortsFromRange": {}
[10:06:23.659] "remote.SSH.serverInstallPath": {}
[10:06:23.665] SSH Resolver called for host: ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
[10:06:23.665] Setting up SSH remote "ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"
[10:06:23.668] Acquiring local install lock: /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-remote-ssh-f18a271b-install.lock
[10:06:23.669] Looking for existing server data file at /Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json
[10:06:23.670] Using commit id "6261075646f055b99068d3688932416f2346dd3b" and quality "stable" for server
[10:06:23.673] Install and start server if needed
[10:06:23.677] PATH: /Users/e230-admin/opt/anaconda3/bin:/Users/e230-admin/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[10:06:23.677] Checking ssh with "ssh -V"
[10:06:23.683] > OpenSSH_8.6p1, LibreSSL 3.3.6
[10:06:23.685] askpass server listening on /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-ac64db8f2b3594ab520c69a00c4c9eeb87a0148c.sock
[10:06:23.685] Spawning local server with {"serverId":1,"ipcHandlePath":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-f904c12e44e86615a58d179998b5c8c267d4e5dc.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","52009","-o","ConnectTimeout=15","ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json"}
[10:06:23.685] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.N28FcZaC8e/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-ac64db8f2b3594ab520c69a00c4c9eeb87a0148c.sock"}
[10:06:23.686] Spawned 5549
[10:06:23.802] > local-server-1> Spawned ssh, pid=5553
[10:06:23.804] stderr> OpenSSH_8.6p1, LibreSSL 3.3.6
[10:06:24.048] stderr> debug1: Server host key: ssh-ed25519 SHA256:qBsiF0Kzms3xA7WYi6hlWCUCPWXYXJZ+3LT4LbY+Is8
[10:06:24.286] stderr> Authenticated to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com ([18.195.119.68]:22).
[10:06:40.688] Terminating local server
[10:06:40.691] Resolver error: Error: Connecting with SSH timed out
at g.Timeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:583947)
at Timeout._onTimeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:629238)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
[10:06:40.698] ------
[10:06:40.699] Local server exit: 15
[10:06:40.771] ------
[10:06:40.771] SSH Resolver called for "ssh-remote+ec2-18-195-119-68.eu-central-1.compute.amazonaws.com", attempt 2, (Reconnection)
[10:06:40.772] SSH Resolver called for host: ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
[10:06:40.772] Setting up SSH remote "ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"
[10:06:40.773] Acquiring local install lock: /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-remote-ssh-f18a271b-install.lock
[10:06:40.774] Looking for existing server data file at /Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json
[10:06:40.774] Using commit id "6261075646f055b99068d3688932416f2346dd3b" and quality "stable" for server
[10:06:40.777] Install and start server if needed
[10:06:40.781] askpass server listening on /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-4940edcb04ffb878569e648c9902e85e9dd41c35.sock
[10:06:40.781] Spawning local server with {"serverId":2,"ipcHandlePath":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-18746d41afdb737fb9c257edb8980695a140b533.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","52014","-o","ConnectTimeout=15","ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json"}
[10:06:40.781] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.N28FcZaC8e/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-4940edcb04ffb878569e648c9902e85e9dd41c35.sock"}
[10:06:40.782] Spawned 5554
[10:06:40.902] > local-server-2> Spawned ssh, pid=5558
[10:06:40.904] stderr> OpenSSH_8.6p1, LibreSSL 3.3.6
[10:06:41.130] stderr> debug1: Server host key: ssh-ed25519 SHA256:qBsiF0Kzms3xA7WYi6hlWCUCPWXYXJZ+3LT4LbY+Is8
[10:06:41.368] stderr> Authenticated to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com ([18.195.119.68]:22).
[10:06:57.784] Terminating local server
[10:06:57.785] Resolver error: Error: Connecting with SSH timed out
at g.Timeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:583947)
at Timeout._onTimeout (/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:629238)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
[10:06:57.788] ------
[10:06:57.789] Local server exit: 15
[10:06:57.791] ------
[10:06:57.791] SSH Resolver called for "ssh-remote+ec2-18-195-119-68.eu-central-1.compute.amazonaws.com", attempt 3, (Reconnection)
[10:06:57.792] SSH Resolver called for host: ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
[10:06:57.792] Setting up SSH remote "ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"
[10:06:57.793] Acquiring local install lock: /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-remote-ssh-f18a271b-install.lock
[10:06:57.793] Looking for existing server data file at /Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json
[10:06:57.794] Using commit id "6261075646f055b99068d3688932416f2346dd3b" and quality "stable" for server
[10:06:57.796] Install and start server if needed
[10:06:57.798] askpass server listening on /var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-99286a203825bc8eb98a994cef903f1d69469b2e.sock
[10:06:57.799] Spawning local server with {"serverId":3,"ipcHandlePath":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-725973d06fbc79c00dda6e4fac316f3d6d5d0337.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","52018","-o","ConnectTimeout=15","ec2-18-195-119-68.eu-central-1.compute.amazonaws.com"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/e230-admin/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-f18a271b-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json"}
[10:06:57.799] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.N28FcZaC8e/Listeners","SHELL":"/bin/zsh","DISPLAY":"1","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/e230-admin/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/dq/bsndvygj5nnd1yrmqtkbgznh0000gp/T/vscode-ssh-askpass-99286a203825bc8eb98a994cef903f1d69469b2e.sock"}
[10:06:57.800] Spawned 5561
[10:06:57.929] > local-server-3> Spawned ssh, pid=5565
[10:06:57.931] stderr> OpenSSH_8.6p1, LibreSSL 3.3.6
[10:06:58.161] stderr> debug1: Server host key: ssh-ed25519 SHA256:qBsiF0Kzms3xA7WYi6hlWCUCPWXYXJZ+3LT4LbY+Is8
[10:06:58.400] stderr> Authenticated to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com ([18.195.119.68]:22).
Hello! It seems from looking at the logs that the connection is not able to run our install script. Could you try adding echo "echo hello" |
to the beginning of the SSH command we run to confirm that we can execute a script on your remote by piping it into SSH. The command we ran to connect was ssh -v -T -D 52009 -o ConnectTimeout=15 ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
so just add the echo part to this command and let me know the output.
Sure, here is the log.
(Edit: IP addresses and other private information are masked.)
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/username/.ssh/config
debug1: Reading configuration data /Users/username/.ssh/conf.d/btlz/config
debug1: /Users/username/.ssh/conf.d/btlz/config line 11: Applying options for monolith-remote
debug1: /Users/username/.ssh/config line 13: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Setting implicit ProxyCommand from ProxyJump: ssh -v -W '[%h]:%p' bastion
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Executing proxy command: exec ssh -v -W '[localhost]:XXX' bastion
debug1: identity file /Users/username/.ssh/id_rsa type 0
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/username/.ssh/config
debug1: Reading configuration data /Users/username/.ssh/conf.d/btlz/config
debug1: /Users/username/.ssh/conf.d/btlz/config line 6: Applying options for bastion
debug1: /Users/username/.ssh/config line 13: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to X.X.X.X [X.X.X.X] port 22.
debug1: Connection established.
debug1: identity file /Users/username/.ssh/id_rsa type 0
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to X.X.X.X:22 as 'username'
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:XXX
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
Warning: Permanently added 'X.X.X.X' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Server accepts key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Authentication succeeded (publickey).
Authenticated to X.X.X.X ([X.X.X.X]:22).
debug1: channel_connect_stdio_fwd: localhost:XXX
debug1: channel 0: new [stdio-forward]
debug1: getpeername failed: Bad file descriptor
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: /home/username/.ssh/authorized_keys:2: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/username/.ssh/authorized_keys:2: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to localhost:XXX as 'username'
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:XXX
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: checking without port identifier
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
Warning: Permanently added '[localhost]:XXX' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Server accepts key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Authentication succeeded (publickey).
Authenticated to localhost (via proxy).
debug1: Local connections to LOCALHOST:52009 forwarded to remote address socks:0
debug1: Local forwarding listening on ::1 port 52009.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on X.X.X.X port 52009.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: proc
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: /home/username/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/username/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 2: setting env LC_TERMINAL = "iTerm2"
debug1: channel 2: setting env LC_TERMINAL_VERSION = "3.4.18"
debug1: channel 2: setting env LC_ALL = "en_US.UTF-8"
debug1: channel 2: setting env LC_CTYPE = "en_US.UTF-8"
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-53-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Nov 29 11:39:52 AM JST 2022
System load: 0.0
Usage of /home: 31.3% of 392.65GB
Memory usage: 0%
Swap usage: 0%
Temperature: 45.0 C
Processes: 345
Users logged in: 0
IPv4 address for br-226c61834c35: X.X.X.X
IPv4 address for br-94efdfc78b25: X.X.X.X
IPv4 address for br-d5342e6a55b7: X.X.X.X
IPv4 address for docker0: X.X.X.X
IPv4 address for enp6s0: X.X.X.X
IPv6 address for enp6s0: XXXX.XXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
0 updates can be applied immediately.
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
hello
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 0: free: port listener, nchannels 2
debug1: channel 1: free: port listener, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
Transferred: sent 3860, received 4432 bytes, in 0.4 seconds
Bytes per second: sent 8620.4, received 9897.8
debug1: Exit status 0
debug1: channel 0: free: direct-tcpip: listening port 0 for localhost port XXX, connect from X.X.X.X port 65535 to UNKNOWN port 65536, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Killed by signal 1.
@eleanorjboyd Thanks for the response,
As I mentioned earlier, when I pass the key via termina it works, for example, this works
ssh -i .ssh/delete.pem ubuntu@ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
but adding an echo
without a key, unable to connect.
(base) e230-admin@e230-mb01wl ~ % echo "echo hello" | ssh -v -T -D 52009 -o ConnectTimeout=15 ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/e230-admin/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com [18.195.119.68] port 22.
debug1: fd 5 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/e230-admin/.ssh/id_rsa type 0
debug1: identity file /Users/e230-admin/.ssh/id_rsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_dsa type -1
debug1: identity file /Users/e230-admin/.ssh/id_dsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519 type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_xmss type -1
debug1: identity file /Users/e230-admin/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com:22 as 'e230-admin'
debug1: load_hostkeys: fopen /Users/e230-admin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:qBsiF0Kzms3xA7WYi6hlWCUCPWXYXJZ+3LT4LbY+Is8
debug1: load_hostkeys: fopen /Users/e230-admin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'ec2-18-195-119-68.eu-central-1.compute.amazonaws.com' is known and matches the ED25519 host key.
debug1: Found key in /Users/e230-admin/.ssh/known_hosts:4
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/e230-admin/.ssh/id_rsa RSA SHA256:ABjXFIcer+e0AboR8cgiwhFpjtz+4ujdjsW9Ra1HVzg
debug1: Will attempt key: /Users/e230-admin/.ssh/id_dsa
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ecdsa
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ed25519
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/e230-admin/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/e230-admin/.ssh/id_rsa RSA SHA256:ABjXFIcer+e0AboR8cgiwhFpjtz+4ujdjsW9Ra1HVzg
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/e230-admin/.ssh/id_dsa
debug1: Trying private key: /Users/e230-admin/.ssh/id_ecdsa
debug1: Trying private key: /Users/e230-admin/.ssh/id_ecdsa_sk
debug1: Trying private key: /Users/e230-admin/.ssh/id_ed25519
debug1: Trying private key: /Users/e230-admin/.ssh/id_ed25519_sk
debug1: Trying private key: /Users/e230-admin/.ssh/id_xmss
debug1: No more authentication methods to try.
e230-admin@ec2-18-195-119-68.eu-central-1.compute.amazonaws.com: Permission denied (publickey).
Hello @santhoshcameo, it seems like your ssh is unable to find your identity file correctly in your ssh config since it is not able to work from the command line without specifying the -i
parameter. Could you try formatting your IdentityFile in this format: ~/.ssh/key_here
@bilzard, so does the process end after you get the message Killed by signal 1.
? It seems then that even from the command line the process ends to my understanding but let me know if I am misunderstanding. Thanks!
so does the process end after you get the message Killed by signal 1.?
@eleanorjboyd
Yes. The process is terminated, but the command execution itself is successful because the screen shows hello
(although I need to check here why the status is not 0...). Therefore, it is strange that there is no execution log of the client install command in the extension's log.
Also, this problem seems to be unrelated to the status code at the connection end. Because I can confirm that the status is 0 when connecting directly to the target host without going through the bastion host, but the SSH extension of VSCode results in a TimeOut error as well (I attached the log).
Host monolith
HostName x.x.x.x
IdentityFile ~/.ssh/id_rsa
User username
Seems to succeed because the screen shows hello
and Exit status 0
.
echo "echo hello" | ssh -v -T -D 52009 -o ConnectTimeout=15 monolith
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/username/.ssh/config
debug1: Reading configuration data /Users/username/.ssh/conf.d/btlz/config
debug1: /Users/username/.ssh/conf.d/btlz/config line 1: Applying options for monolith
debug1: /Users/username/.ssh/config line 13: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to X.X.X.X [X.X.X.X] port 22.
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/username/.ssh/id_rsa type 0
debug1: identity file /Users/username/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to X.X.X.X:22 as 'username'
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:XXX
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
Warning: Permanently added 'X.X.X.X' (ED25519) to the list of known hosts.
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Server accepts key: /Users/username/.ssh/id_rsa RSA SHA256:XXX explicit agent
debug1: Authentication succeeded (publickey).
Authenticated to X.X.X.X ([X.X.X.X]:22).
debug1: Local connections to LOCALHOST:52009 forwarded to remote address socks:0
debug1: Local forwarding listening on ::1 port 52009.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on X.X.X.X port 52009.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: /home/username/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/username/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 2: setting env LC_TERMINAL = "iTerm2"
debug1: channel 2: setting env LC_TERMINAL_VERSION = "3.4.18"
debug1: channel 2: setting env LC_ALL = "en_US.UTF-8"
debug1: channel 2: setting env LC_CTYPE = "en_US.UTF-8"
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-53-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Wed Nov 30 02:16:47 AM JST 2022
System load: 0.0
Usage of /home: 31.3% of 392.65GB
Memory usage: 2%
Swap usage: 0%
Temperature: 52.0 C
Processes: 358
Users logged in: 0
IPv4 address for br-226c61834c35: X.X.X.X
IPv4 address for br-6e094896e816: X.X.X.X
IPv4 address for br-94efdfc78b25: X.X.X.X
IPv4 address for br-d5342e6a55b7: X.X.X.X
IPv4 address for docker0: X.X.X.X
IPv4 address for enp6s0: X.X.X.X
IPv6 address for enp6s0: XXXX.XXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX
* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.
https://ubuntu.com/engage/secure-kubernetes-at-the-edge
3 updates can be applied immediately.
3 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
hello
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 0: free: port listener, nchannels 2
debug1: channel 1: free: port listener, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
Transferred: sent 3860, received 4592 bytes, in 0.3 seconds
Bytes per second: sent 12249.1, received 14571.9
debug1: Exit status 0
TimeOut
[02:14:59.305] SSH Resolver called for "ssh-remote+monolith", attempt 5, (Reconnection)
[02:14:59.306] SSH Resolver called for host: monolith
[02:14:59.306] Setting up SSH remote "monolith"
[02:14:59.307] Acquiring local install lock: /var/folders/1x/gbcc0yx16s18r3yrbxn3sc4w0000gn/T/vscode-remote-ssh-0949f745-install.lock
[02:14:59.307] Looking for existing server data file at /Users/username/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-0949f745-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json
[02:14:59.307] Using commit id "6261075646f055b99068d3688932416f2346dd3b" and quality "stable" for server
[02:14:59.308] Install and start server if needed
[02:14:59.311] askpass server listening on /var/folders/1x/gbcc0yx16s18r3yrbxn3sc4w0000gn/T/vscode-ssh-askpass-abd87cab4988b0dcb677568dab8eb86e8aebfe3f.sock
[02:14:59.311] Spawning local server with {"serverId":5,"ipcHandlePath":"/var/folders/1x/gbcc0yx16s18r3yrbxn3sc4w0000gn/T/vscode-ssh-askpass-1a7f878038d2d79397a1036ccab64eb8d21b43b4.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","60144","-o","ConnectTimeout=15","monolith"],"serverDataFolderName":".vscode
-server","dataFilePath":"/Users/username/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-0949f745-6261075646f055b99068d3688932416f2346dd3b-0.92.0/data.json"}
[02:14:59.311] Local server env: {"SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.OLj5YQD2Te/Listeners","SHELL":"/opt/homebrew/bin/fish","DISPLAY":"/private/tmp/com.apple.launchd.Lkp8ro50Yx/org.xquartz:0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/Users/username/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"--ms-enable-electron-run-as-node","VSCODE_SSH_ASKPASS_MAIN":"/Users/username/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/var/folders/1x/gbcc0yx16s18r3yrbxn3sc4w0000gn/T/vscode-ssh-askpass-abd87cab4988b0dcb677568dab8eb86e8aebfe3f.sock"}
[02:14:59.312] Spawned 72801
[02:14:59.384] > local-server-5> Spawned ssh, pid=72814
[02:14:59.387] stderr> OpenSSH_8.6p1, LibreSSL 3.3.6
[02:14:59.419] stderr> debug1: Server host key: ssh-ed25519 SHA256:XXX
[02:14:59.419] stderr> Warning: Permanently added 'X.X.X.X' (ED25519) to the list of known hosts.
[02:14:59.552] stderr> Authenticated to X.X.X.X ([X.X.X.X]:22).
[02:14:59.664] > Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-53-generic x86_64)
>
> * Documentation: https://help.ubuntu.com
> * Management: https://landscape.canonical.com
> * Support: https://ubuntu.com/advantage
>
> System information as of Wed Nov 30 02:14:42 AM JST 2022
>
> System load: 0.00146484375
> Usage of /home: 31.3% of 392.65GB
> Memory usage: 2%
> Swap usage: 0%
> Temperature: 47.0 C
> Processes: 360
> Users logged in: 0
> IPv4 address for br-226c61834c35: X.X.X.X
> IPv4 address for br-6e094896e816: X.X.X.X
> IPv4 address for br-94efdfc78b25: X.X.X.X
> IPv4 address for br-d5342e6a55b7: X.X.X.X
> IPv4 address for docker0: X.X.X.X
> IPv4 address for enp6s0: X.X.X.X
> IPv6 address for enp6s0: XXXX.XXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX
>
> * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
> just raised the bar for easy, resilient and secure K8s cluster deployment.
>
> https://ubuntu.com/engage/secure-kubernetes-at-the-edge
>
> 3 updates can be applied immediately.
> 3 of these updates are standard security updates.
> To see these additional updates run: apt list --upgradable
>
[02:15:16.314] Terminating local server
[02:15:16.315] Resolver error: Error: Connecting with SSH timed out
at g.Timeout (/Users/username/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:583947)
at Timeout._onTimeout (/Users/username/.vscode/extensions/ms-vscode-remote.remote-ssh-0.92.0/out/extension.js:1:629238)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
[02:15:16.321] Local server exit: 15
[02:15:16.324] ------
Update:
I used fish
shell on the remote server. When I change login shell to bash
, the connection to both monolith
and monolith-remote
succeeded.
So, doesn't the extension support for fish
shell?
Oh, I found the same problem on the issue #2509. Then, my original issue should be closed. Thank you for helping @eleanorjboyd .
@santhoshcameo My original issue is solved, so tell me if your issue is solved to close this issue ticket.
@eleanorjboyd
Since many confusing threads are going on, here are my latest updates and configurations, and details.
VS code:
Version: 1.74.0-insider (Universal)
Commit: 8b9891739b703b50547f506a7e2bc9565e52beff
Date: 2022-11-29T07:10:26.814Z (11 hrs ago)
Electron: 19.1.6
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 21.6.0
Sandboxed: Yes
Remote SSH Extension
v0.93.2022112815
Pre-Release
Host OS: Mac OSX Monterey
Remote OS: AWS EC2, ubuntu
What Works:- The below commands works
Note: Here I am not passing -i with keys, I have added those into authorized keys, and it works without keys
(base) e230-admin@e230-mb01wl ~ % ssh ubuntu@ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
.ssh/config file
Host ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
HostName ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
User ubuntu
Terminal Log of Echo Command with VS code connection string : As you can see, the authentication is successfull too
(base) e230-admin@e230-mb01wl ~ % echo "echo hello" | ssh -v -T -D 63324 -o ConnectTimeout=15 ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/e230-admin/.ssh/config
debug1: /Users/e230-admin/.ssh/config line 1: Applying options for ec2-18-195-119-68.eu-central-1.compute.amazonaws.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com [18.195.119.68] port 22.
debug1: fd 5 clearing O_NONBLOCK
debug1: Connection established.
debug1: identity file /Users/e230-admin/.ssh/id_rsa type 0
debug1: identity file /Users/e230-admin/.ssh/id_rsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_dsa type -1
debug1: identity file /Users/e230-admin/.ssh/id_dsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/e230-admin/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519 type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/e230-admin/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/e230-admin/.ssh/id_xmss type -1
debug1: identity file /Users/e230-admin/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com:22 as 'ubuntu'
debug1: load_hostkeys: fopen /Users/e230-admin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:qBsiF0Kzms3xA7WYi6hlWCUCPWXYXJZ+3LT4LbY+Is8
debug1: load_hostkeys: fopen /Users/e230-admin/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'ec2-18-195-119-68.eu-central-1.compute.amazonaws.com' is known and matches the ED25519 host key.
debug1: Found key in /Users/e230-admin/.ssh/known_hosts:4
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/e230-admin/.ssh/id_rsa RSA SHA256:ABjXFIcer+e0AboR8cgiwhFpjtz+4ujdjsW9Ra1HVzg
debug1: Will attempt key: /Users/e230-admin/.ssh/id_dsa
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ecdsa
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ed25519
debug1: Will attempt key: /Users/e230-admin/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/e230-admin/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/e230-admin/.ssh/id_rsa RSA SHA256:ABjXFIcer+e0AboR8cgiwhFpjtz+4ujdjsW9Ra1HVzg
debug1: Server accepts key: /Users/e230-admin/.ssh/id_rsa RSA SHA256:ABjXFIcer+e0AboR8cgiwhFpjtz+4ujdjsW9Ra1HVzg
debug1: Authentication succeeded (publickey).
Authenticated to ec2-18-195-119-68.eu-central-1.compute.amazonaws.com ([18.195.119.68]:22).
debug1: Local connections to LOCALHOST:63324 forwarded to remote address socks:0
debug1: Local forwarding listening on 127.0.0.1 port 63324.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on ::1 port 63324.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: client_input_hostkeys: searching /Users/e230-admin/.ssh/known_hosts for ec2-18-195-119-68.eu-central-1.compute.amazonaws.com / (none)
debug1: client_input_hostkeys: searching /Users/e230-admin/.ssh/known_hosts2 for ec2-18-195-119-68.eu-central-1.compute.amazonaws.com / (none)
debug1: client_input_hostkeys: hostkeys file /Users/e230-admin/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: Remote: /home/ubuntu/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /home/ubuntu/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Sending environment.
debug1: channel 2: setting env LC_CTYPE = "UTF-8"
client_loop: send disconnect: Broken pipe
(base) e230-admin@e230-mb01wl ~ %
Please help.
@eleanorjboyd
The problem solved <3
this issue started since 1 month for me, and just now solved it by adding the following line into
.ssh/config
file ( MAC OSX; Monterey)
Host *
IPQoS=throughput
@santhoshcameo and @bilzard I am glad you both were able to solve your issues and I apologies it took so long! Those are both issues which the error messages were not conducive to fixing, I will look into these and see if there is any additional error messaging I can pass through that could help future users.
Happy coding 🎉
Tried to connect to remote host with ProxyJump, and it shows the logged-on message of remote host, but the extension fails and saids "timed out".
Since I tried connecting to bastion host and succeed, it seems only occurs when tried to connect to remote host with ProxyJump.
Steps to Reproduce:
~/.ssh/config
Host monolith-remote Hostname localhost User username IdentityFile ~/.ssh/id_rsa ProxyJump bastion-vps Port yyyy