<div dir="auto"><div>I use Visual Studio Code a ton. Whenever I've had an issue with SSH on code it's usually due to an issue in the SSHD Config.</div><div dir="auto"><br></div><div dir="auto">Check the "output" tab in VSC, as it'll have helpful output there. Typically, in the SSHD Config file you'll need:</div><div dir="auto"><br></div><div dir="auto">AllowAgentForwarding yes</div><div dir="auto">AllowTcpForwarding yes</div><div dir="auto">TCPKeepAlive yes</div><div dir="auto"><br></div><div dir="auto">I would also *HIGHLY* suggest using key-authentication, just in general -- but most especially when using VSC with Remote SSH.</div><div dir="auto"><br></div><div data-smartmail="gmail_signature">---<br>Thanks,<br>Alexander<br><br>Sent from my Google Pixel 7 Pro</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 30, 2024, 14:51 Keith Smith via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am having difficulty connecting remote using Visual Studio Code.<br>
<br>
Desktop is running Kubuntu 24.04lts<br>
<br>
Remote is a laptop running Win10 with VirtualBox installed and multiple <br>
Ubuntu 24.04lts LAMP servers configured. Only one is running.<br>
<br>
I have 3 users<br>
<br>
1) is the user installed during the Linux install. It has Sudo <br>
privileges.<br>
2) A user that has SSH access that I can SSH into via the konsole on <br>
Kubuntu. This is going to be a PHP-FPM virtual host owner.<br>
3) A user that has SSH access that I can SSH into via the konsole on <br>
Kubuntu. This is going to be a PHP-FPM virtual host owner.<br>
<br>
I can SSH into the box remotely using SSH via the konsole on Kubuntu.<br>
<br>
Users number 2 and three do not have sudo.<br>
<br>
I can access the virtual hosts via FileZilla using user 2 and 3.<br>
<br>
I can remote (VSC) into the VM using my sudo user that does not own any <br>
vhosts.<br>
<br>
I will be installing and configuring PHP-FPM so my virtual hosts will be <br>
owned by a SSH user so I can do programming in real time / remote.<br>
<br>
AI gave me a list of things to do and test which I did, such as<br>
<br>
- Set /etc/ssh/sshd_config to PasswordAuthentication yes. Local and <br>
remote are set to PasswordAuthentication yes<br>
<br>
- sudo tail -f /var/log/syslog - nothing looks like it has anything to <br>
do with VSC.<br>
<br>
- ssh -vvv lamp@ip-address<br>
<br>
which returns a bunch of stuff and then asks me for the password for <br>
lamp@ip-address then connects the konsole w/o an issue:<br>
<br>
debug3: kex_input_ext_info: extension <a href="mailto:publickey-hostbound@openssh.com" target="_blank" rel="noreferrer">publickey-hostbound@openssh.com</a><br>
debug1: kex_ext_info_check_ver: <a href="mailto:publickey-hostbound@openssh.com" target="_blank" rel="noreferrer">publickey-hostbound@openssh.com</a>=<0><br>
debug3: kex_input_ext_info: extension <a href="mailto:ping@openssh.com" target="_blank" rel="noreferrer">ping@openssh.com</a><br>
debug1: kex_ext_info_check_ver: <a href="mailto:ping@openssh.com" target="_blank" rel="noreferrer">ping@openssh.com</a>=<0><br>
debug3: receive packet: type 6<br>
debug2: service_accept: ssh-userauth<br>
debug1: SSH2_MSG_SERVICE_ACCEPT received<br>
debug3: send packet: type 50<br>
debug3: receive packet: type 7<br>
debug1: SSH2_MSG_EXT_INFO received<br>
debug3: kex_input_ext_info: extension server-sig-algs<br>
debug1: kex_ext_info_client_parse: <br>
server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,<a href="mailto:sk-ssh-ed25519@openssh.com" target="_blank" rel="noreferrer">sk-ssh-ed25519@openssh.com</a>,<a href="mailto:sk-ecdsa-sha2-nistp256@openssh.com" target="_blank" rel="noreferrer">sk-ecdsa-sha2-nistp256@openssh.com</a>,rsa-sha2-512,rsa-sha2-256><br>
debug3: receive packet: type 51<br>
debug1: Authentications that can continue: publickey,password<br>
debug3: start over, passed a different list publickey,password<br>
debug3: preferred <br>
gssapi-with-mic,publickey,keyboard-interactive,password<br>
debug3: authmethod_lookup publickey<br>
debug3: remaining preferred: keyboard-interactive,password<br>
debug3: authmethod_is_enabled publickey<br>
debug1: Next authentication method: publickey<br>
debug3: ssh_get_authentication_socket_path: path <br>
'/tmp/ssh-2bwrFHjD6Cmc/agent.1207'<br>
debug1: get_agent_identities: bound agent to hostkey<br>
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no <br>
identities<br>
debug1: Will attempt key: /home/keith/.ssh/id_rsa<br>
debug1: Will attempt key: /home/keith/.ssh/id_ecdsa<br>
debug1: Will attempt key: /home/keith/.ssh/id_ecdsa_sk<br>
debug1: Will attempt key: /home/keith/.ssh/id_ed25519<br>
debug1: Will attempt key: /home/keith/.ssh/id_ed25519_sk<br>
debug1: Will attempt key: /home/keith/.ssh/id_xmss<br>
debug1: Will attempt key: /home/keith/.ssh/id_dsa<br>
debug2: pubkey_prepare: done<br>
debug1: Trying private key: /home/keith/.ssh/id_rsa<br>
debug3: no such identity: /home/keith/.ssh/id_rsa: No such file or <br>
directory<br>
debug1: Trying private key: /home/keith/.ssh/id_ecdsa<br>
debug3: no such identity: /home/keith/.ssh/id_ecdsa: No such file or <br>
directory<br>
debug1: Trying private key: /home/keith/.ssh/id_ecdsa_sk<br>
debug3: no such identity: /home/keith/.ssh/id_ecdsa_sk: No such file or <br>
directory<br>
debug1: Trying private key: /home/keith/.ssh/id_ed25519<br>
debug3: no such identity: /home/keith/.ssh/id_ed25519: No such file or <br>
directory<br>
debug1: Trying private key: /home/keith/.ssh/id_ed25519_sk<br>
debug3: no such identity: /home/keith/.ssh/id_ed25519_sk: No such file <br>
or directory<br>
debug1: Trying private key: /home/keith/.ssh/id_xmss<br>
debug3: no such identity: /home/keith/.ssh/id_xmss: No such file or <br>
directory<br>
debug1: Trying private key: /home/keith/.ssh/id_dsa<br>
debug3: no such identity: /home/keith/.ssh/id_dsa: No such file or <br>
directory<br>
debug2: we did not send a packet, disable method<br>
debug3: authmethod_lookup password<br>
debug3: remaining preferred: ,password<br>
debug3: authmethod_is_enabled password<br>
debug1: Next authentication method: password<br>
<br>
- - - - -<br>
<br>
Any Thoughts Much Appreciated!!<br>
<br>
Keith<br>
<br>
<br>
<br>
<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" rel="noreferrer">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote></div>