You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build 14352
Able to install and start ssh server via service ssh start. But cannot connect to it.
Results of running in debug mode
$ sudo /usr/sbin/sshd -ddebug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014debug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type RSAdebug1: private host key: #0 type 1 RSAdebug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type DSAdebug1: private host key: #1 type 2 DSAdebug1: key_parse_private2: missing begin markerdebug1: read PEM private key done: type ECDSAdebug1: private host key: #2 type 3 ECDSAdebug1: private host key: #3 type 4 ED25519debug1: rexec_argv[0]='/usr/sbin/sshd'debug1: rexec_argv[1]='-d'Set /proc/self/oom_adj from 0 to -17debug1: Bind to port 22 on 0.0.0.0.Server listening on 0.0.0.0 port 22.debug1: Server will not fork when running in debugging mode.debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7debug1: inetd sockets after dupping: 3, 3Connection from 127.0.0.1 port 51262 on 127.0.0.1 port 22debug1: Client protocol version 2.0; client software version JSCH-0.1.52debug1: no match: JSCH-0.1.52debug1: Enabling compatibility mode for protocol 2.0debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7chroot("/var/run/sshd"): Function not implemented [preauth]debug1: do_cleanup [preauth]debug1: monitor_read_log: child log fd closeddebug1: do_cleanupdebug1: Killing privsep child 2149debug1: audit_event: unhandled event 12
$
chroot("/var/run/sshd"): Function not implemented [preauth] Seems like something missing in the kernel
$ sudo /usr/sbin/sshd -d
debug1: sshd version OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: private host key: #3 type 4 ED25519
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
Set /proc/self/oom_adj from 0 to -17
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Invalid argument.
Already created the keys with sudo ssh-keygen -A seems I'am lacking some steps...
Probably the binding to IPv6 is the problem... dunno yet.
I can't login. I did the changes to /etc/ssh/sshd_config that Tang Chuan-Wei (@xyzith) and Roman Usherenko (@dreyks) suggested. I use the same password as I use with sudo. I also changed to PubkeyAuthentication no.
To answer the original question around support for SSH, there have been some changes checked in to enable PTY, which should unblock SSH. The changes haven't made it yet to the release branch, but should soon. Stay tuned.
Also, feel free to post your questions about my forum-post on the forum :-) There are lots of redundant threads in this bugtracker about setting up ssh; I'm trying to gather them in one place so that everyone can find answers to these sorts of questions.
I started to try ssh in WSL to connect a remote debugger from windows to a python interpreter in WSL via Intellij Idea. Now ssh is running in WSL and I can connect to ubuntu WSL via PuTTY or windows console, but I can not via Intellij Idea, I think now I have to do some extra research.
Connect from PuTTY (executable .exe in Windows 10) to SSH into WSL just to test
At this point PuTTY connects successfully
Start Intellij, create a new project, try to add a new Project SDK, a remote one.
In the 'Configure Remote Python Interpreter' dialog I fill variables to connect:
Host: 127.0.0.1
Port: 22
Password: ...
And when I try to change de Python interpreter path, I can see my WSL folders and select de interpreter from my virtualenv in WSL, so I think it is connecting right.
But then when I hit OK, it shows a message 'connecting to 127.0.0.1...' and never connect, I have wait hours...
I don't remember having to change the ListenAddress on my system, but I do remember that I had to disable the SSH Proxy in the Windows Firewall and add a new rule to allow TCP traffic on port 22. I don't use my SSH server on my PC much, so I don't know if this has broken since I last tried it.
Just to leave my note here... The current build (14936) start successfully the SSH server with sudo service ssh start however, when trying to make any SSH client to connect to it, windows crash with blue screen and reboot...
Just confirmed. After update to build 1492 and made the changes on the SSH settings files as suggested here, it worked perfectly without crash. Thanks to everyone! :)
Activity
russalex commentedon Apr 29, 2016
No big announcements on ssh server yet. We know this is something that many users are waiting on and are looking at it. Stay tuned.
MadcowD commentedon May 2, 2016
Big requisite to implementing the SSH server is #308
dreyks commentedon May 29, 2016
build 14352
Able to install and start ssh server via
service ssh start. But cannot connect to it.Results of running in debug mode
chroot("/var/run/sshd"): Function not implemented [preauth]Seems like something missing in the kerneldreyks commentedon May 29, 2016
Actually changing
UsePrivilegeSeparationtonoin/etc/ssh/sshd_configfixed this issue, and I can fully connect to ssh server 🎆leon-pilot commentedon May 30, 2016
Afff... I get:
Already created the keys with
sudo ssh-keygen -Aseems I'am lacking some steps...Probably the binding to IPv6 is the problem... dunno yet.
garciat commentedon May 30, 2016
I can connect thanks to dryks suggestion. However, I get:
PTY allocation request failed on channel 0so I get no shell at all.xyzith commentedon Jun 1, 2016
León Álvarez (@leon-pilot)
try edit /etc/ssh/sshd_config
#ListenAddress 0.0.0.0 => ListenAddress 0.0.0.0
remove the # sign
mobluse commentedon Jun 3, 2016
I can't login. I did the changes to /etc/ssh/sshd_config that Tang Chuan-Wei (@xyzith) and Roman Usherenko (@dreyks) suggested. I use the same password as I use with sudo. I also changed to PubkeyAuthentication no.
[Update: It works now with Build 14361.]
sunilmut commentedon Jun 6, 2016
To answer the original question around support for SSH, there have been some changes checked in to enable PTY, which should unblock SSH. The changes haven't made it yet to the release branch, but should soon. Stay tuned.
garciat commentedon Jun 8, 2016
As of build 14361, with the right sshd configuration (as seen above), this is now working.
Skaveny commentedon Jun 8, 2016
Which of the settings do you mean?
When did build 14361 get released?
Skickat från min iPhone
dreyks commentedon Jun 8, 2016
today or maybe yesterday. my laptop is rebooting now to install 14361
garciat commentedon Jun 9, 2016
golab
20 remaining items
aseering commentedon Aug 11, 2016
Gocht Guerrero (@Gocht) -- as Roman Semenov (@poma) says, those errors should not affect functionality.
Also, feel free to post your questions about my forum-post on the forum :-) There are lots of redundant threads in this bugtracker about setting up ssh; I'm trying to gather them in one place so that everyone can find answers to these sorts of questions.
Gocht commentedon Aug 11, 2016
Adam Seering (@aseering) Roman Semenov (@poma) Thanks! I think now my problem is more related to Intellij Idea.
I started to try ssh in WSL to connect a remote debugger from windows to a python interpreter in WSL via Intellij Idea. Now ssh is running in WSL and I can connect to ubuntu WSL via PuTTY or windows console, but I can not via Intellij Idea, I think now I have to do some extra research.
dreyks commentedon Aug 11, 2016
What error do you get in IntelliJ? I use rubymine's and webstorm's remote interpreters (ruby and node respectively) and everything seems to
work fine
Gocht commentedon Aug 11, 2016
Roman Usherenko (@dreyks) I will describe what I am doing:
At this point PuTTY connects successfully
In the 'Configure Remote Python Interpreter' dialog I fill variables to connect:
Host: 127.0.0.1
Port: 22
Password: ...
And when I try to change de Python interpreter path, I can see my WSL folders and select de interpreter from my virtualenv in WSL, so I think it is connecting right.
But then when I hit OK, it shows a message 'connecting to 127.0.0.1...' and never connect, I have wait hours...
Ehekatl commentedon Aug 12, 2016
sshd works on localhost, but can't connect by public ip, disable firewall didn't help either, any help here ?
dreyks commentedon Aug 12, 2016
make sure you have Listen 0.0.0.0 in your /etc/ssh/sshd_config
Gocht commentedon Aug 13, 2016
Roman Usherenko (@dreyks) Yes, ListenAddress 0.0.0.0
computergeek125 commentedon Aug 23, 2016
I don't remember having to change the ListenAddress on my system, but I do remember that I had to disable the SSH Proxy in the Windows Firewall and add a new rule to allow TCP traffic on port 22. I don't use my SSH server on my PC much, so I don't know if this has broken since I last tried it.
galvesribeiro commentedon Oct 10, 2016
Just to leave my note here... The current build (14936) start successfully the SSH server with
sudo service ssh starthowever, when trying to make any SSH client to connect to it, windows crash with blue screen and reboot...dreyks commentedon Oct 10, 2016
this is already fixed in 14942
sunilmut commentedon Oct 10, 2016
Thanks Roman Usherenko (@dreyks) for chiming in. Once validated, it will be helpful if we can close this issue out on build 14942.
galvesribeiro commentedon Oct 11, 2016
Just confirmed. After update to build 1492 and made the changes on the SSH settings files as suggested here, it worked perfectly without crash. Thanks to everyone! :)
sunilmut commentedon Oct 11, 2016
Thanks Gutemberg Ribeiro (@galvesribeiro) for validating. Closing the issue out.
MathiasMagnus commentedon Oct 23, 2016
+1