# After connection via VSC Remote-SSH no "normal" SSH connection possible

**URL:** <https://dietpi.com/forum/t/after-connection-via-vsc-remote-ssh-no-normal-ssh-connection-possible/24897>\
**Category:** Troubleshooting\
**Created:** [22 January 2026 13:45 UTC](https://dietpi.com/forum/t/after-connection-via-vsc-remote-ssh-no-normal-ssh-connection-possible/24897 "2026-01-22T13:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cc13](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f0a364/32.png) [@cc13](https://dietpi.com/forum/u/cc13)\
**Post date:** [22 January 2026 13:45 UTC](https://dietpi.com/forum/t/after-connection-via-vsc-remote-ssh-no-normal-ssh-connection-possible/24897/1 "2026-01-22T13:45:00Z")

</div>

Hello,

I’m using DietPi v9.19.2 in a VM on Proxmox and run my Docker containers with that setup.

SSH is setup with public key and it was working fine until this morning. To have a more comfortable usage of my docker-compose files I installed the “Remote-SSH” extension in Visual Studio Code, added the credential for the SSH-Connection and started VSC to connect to my DietPi. During this start, VSC installed/started several other components “Container-Tools”, “Docker”, “Docker Explorer” and Extension on my DietPi.

The connection via VSC is working, but I don’t have access via “normal” terminal application to my DietPi anymore. Here the verbose log of trying to connect via iTerm2 on MacOS:

> username@laptop Downloads % ssh [dietpi@192.168.0.232](mailto:dietpi@192.168.0.232) -v
> 
> OpenSSH\_9.9p2, LibreSSL 3.3.6
> 
> debug1: Reading configuration data /Users/username/.ssh/config
> 
> debug1: /Users/username/.ssh/config line 12: Applying options for 192.168.0.232
> 
> 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 192.168.0.232 [192.168.0.232] port 22.
> 
> debug1: Connection established.
> 
> debug1: identity file /Users/username/Library/CloudStorage/OneDrive-/username/Downloads/PuTTYPortable/my\_rsa type 0
> 
> debug1: identity file /Users/username/Library/CloudStorage/OneDrive-/username/Downloads/PuTTYPortable/my\_rsa-cert type -1
> 
> debug1: Local version string SSH-2.0-OpenSSH\_9.9
> 
> debug1: Remote protocol version 2.0, remote software version OpenSSH\_10.0p2 Debian-7
> 
> debug1: compat\_banner: match: OpenSSH\_10.0p2 Debian-7 pat OpenSSH\* compat 0x04000000
> 
> debug1: Authenticating to 192.168.0.232:22 as ‘dietpi’
> 
> debug1: load\_hostkeys: fopen /Users/username/.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: sntrup761x25519-sha512
> 
> debug1: kex: host key algorithm: ssh-ed25519
> 
> debug1: kex: server-\>client cipher: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com) MAC: compression: none
> 
> debug1: kex: client-\>server cipher: [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com) MAC: compression: none
> 
> debug1: expecting SSH2\_MSG\_KEX\_ECDH\_REPLY
> 
> debug1: SSH2\_MSG\_KEX\_ECDH\_REPLY received
> 
> debug1: Server host key: ssh-ed25519 SHA256:key
> 
> debug1: load\_hostkeys: fopen /Users/username/.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 ‘192.168.0.232’ is known and matches the ED25519 host key.
> 
> debug1: Found key in /Users/username/.ssh/known\_hosts:4
> 
> debug1: ssh\_packet\_send2\_wrapped: resetting send seqnr 3
> 
> debug1: rekey out after 134217728 blocks
> 
> debug1: SSH2\_MSG\_NEWKEYS sent
> 
> debug1: Sending SSH2\_MSG\_EXT\_INFO
> 
> debug1: expecting SSH2\_MSG\_NEWKEYS
> 
> debug1: ssh\_packet\_read\_poll2: resetting read seqnr 3
> 
> debug1: SSH2\_MSG\_NEWKEYS received
> 
> debug1: rekey in after 134217728 blocks
> 
> debug1: SSH2\_MSG\_EXT\_INFO received
> 
> debug1: kex\_ext\_info\_client\_parse: server-sig-algs=\<[ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com](mailto:ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com),sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256\>
> 
> debug1: kex\_ext\_info\_check\_ver: publickey-hostbound@openssh.com=\<0\>
> 
> debug1: kex\_ext\_info\_check\_ver: ping@openssh.com=\<0\>
> 
> debug1: SSH2\_MSG\_SERVICE\_ACCEPT received
> 
> debug1: SSH2\_MSG\_EXT\_INFO received
> 
> debug1: kex\_ext\_info\_client\_parse: server-sig-algs=\<[ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com](mailto:ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com),sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256\>
> 
> debug1: Authentications that can continue: publickey
> 
> debug1: Next authentication method: publickey
> 
> debug1: get\_agent\_identities: bound agent to hostkey
> 
> debug1: get\_agent\_identities: ssh\_fetch\_identitylist: agent contains no identities
> 
> debug1: Will attempt key: /Users/username/Library/CloudStorage/OneDrive-/username/Downloads/PuTTYPortable/my\_rsa RSA SHA256:key explicit
> 
> debug1: Offering public key: /Users/username/Library/CloudStorage/OneDrive-/username/Downloads/PuTTYPortable/my\_rsa RSA SHA256:key explicit
> 
> debug1: Server accepts key: /Users/username/Library/CloudStorage/OneDrive-/username/Downloads/PuTTYPortable/my\_rsa RSA SHA256:key explicit
> 
> Authenticated to 192.168.0.232 ([192.168.0.232]:22) using “publickey”.
> 
> debug1: channel 0: new session [client-session] (inactive timeout: 0)
> 
> debug1: Requesting [no-more-sessions@openssh.com](mailto:no-more-sessions@openssh.com)
> 
> debug1: Entering interactive session.
> 
> debug1: pledge: filesystem
> 
> debug1: client\_input\_global\_request: rtype [hostkeys-00@openssh.com](mailto:hostkeys-00@openssh.com) want\_reply 0
> 
> debug1: client\_input\_hostkeys: searching /Users/username/.ssh/known\_hosts for 192.168.0.232 / (none)
> 
> debug1: client\_input\_hostkeys: searching /Users/username/.ssh/known\_hosts2 for 192.168.0.232 / (none)
> 
> debug1: client\_input\_hostkeys: hostkeys file /Users/username/.ssh/known\_hosts2 does not exist
> 
> debug1: client\_input\_hostkeys: no new or deprecated keys from server
> 
> debug1: Remote: /home/dietpi/.ssh/authorized\_keys:2: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
> 
> debug1: Remote: /home/dietpi/.ssh/authorized\_keys:2: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
> 
> debug1: Sending environment.
> 
> debug1: channel 0: setting env LC\_TERMINAL\_VERSION = “3.6.6”
> 
> debug1: channel 0: setting env LANG = “en\_US.UTF-8”
> 
> debug1: channel 0: setting env LC\_TERMINAL = “iTerm2”
> 
> debug1: Sending command: sudo su
> 
> debug1: pledge: fork

The second last line could come from the VSC Extension because I added this as a command in the VSC-Config file to be root on the DietPi remote computer.

I don’t know what VSC has changed on my DietPi and would like to know where to check that the “normal” ssh-way is working fine again. The docker containers are working fine and I have access to them via webpage e.g.

Edit: What I found is that the VSC-Extension installed a few files into “/root/.vscode-server” on DietPi.

Cheers,  
CC13

---

<div class="post-metadata">

**Author:** ![cc13](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/f0a364/32.png) [@cc13](https://dietpi.com/forum/u/cc13)\
**Post date:** [22 January 2026 16:02 UTC](https://dietpi.com/forum/t/after-connection-via-vsc-remote-ssh-no-normal-ssh-connection-possible/24897/2 "2026-01-22T16:02:34Z")

</div>

Ok, I found the reason. Mac OS/iTerm2 is using this config-file in the .ssh-folder where VSC saved the ssh-config. After removing the “remotecommand sudo su” it is working fine again.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [22 April 2026 16:03 UTC](https://dietpi.com/forum/t/after-connection-via-vsc-remote-ssh-no-normal-ssh-connection-possible/24897/3 "2026-04-22T16:03:11Z")

</div>

Closed on 22 April 2026 16:03 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
