-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any status update on ssh server? #300
Comments
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. |
Big requisite to implementing the SSH server is #308 |
build 14352 $ 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 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 7
debug1: inetd sockets after dupping: 3, 3
Connection from 127.0.0.1 port 51262 on 127.0.0.1 port 22
debug1: Client protocol version 2.0; client software version JSCH-0.1.52
debug1: no match: JSCH-0.1.52
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7
chroot("/var/run/sshd"): Function not implemented [preauth]
debug1: do_cleanup [preauth]
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 2149
debug1: audit_event: unhandled event 12
$
|
Actually changing |
Afff... I get:
Already created the keys with |
I can connect thanks to @dryks suggestion. However, I get: |
@leon-pilot #ListenAddress 0.0.0.0 => ListenAddress 0.0.0.0 |
I can't login. I did the changes to /etc/ssh/sshd_config that @xyzith and @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.] |
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. |
As of build 14361, with the right sshd configuration (as seen above), this is now working. |
Which of the settings do you mean? When did build 14361 get released? Skickat från min iPhone
|
today or maybe yesterday. my laptop is rebooting now to install 14361 |
|
Can I in someway set it up so sshd starts when Windows boots up like auto start? Skickat från min iPad 9 juni 2016 kl. 14:48 skrev Gabriel Garcia notifications@github.com: ListenAddress 0.0.0.0 |
I can only connect to the local sshd server when the bash window is open. You may be able to do something with |
@Golab - You can try adding the "bash.exe -c " command to Windows startup to automatically launch post boot. |
@russalex could you please somehow change |
Configuration:Made the changes you provided: Build: 14388.0 BehaviorStill no change in behavior, ssh server seems to behave as if password is wrong (it is not :)
Verbose output:
Other observations:
This is a similar error as trying to start dbus service: #376, any relation? All in all I am concluding that since @russalex commented its a known issue, it will be fixed eventually. |
I'm wondering how do I setup so sshd starts when the computer boots up? Skickat från min iPhone
|
@Golab , unfortunately, it looks like Upstart is not working yet or at least on mine. But based on @sunilmut 's suggestion, you can pass a command to So you can do something like:
And then add that to startup. This will ask you for your password though.
But this is not secure. |
A better alternative is to edit /etc/sudoers, either allowing your user to sudo without password (aka "trust windows to protect your system") or just allow starting the ssh service without a password. For inspiration see eg: https://help.ubuntu.com/community/Sudoers#Shutting_Down_From_The_Console_Without_A_Password Please, never recommend passing passwords on the command line - at the very least use an environment variable (but, really - there's a reason we have sudo/sudoers). |
Not working for me even changing the port number, here is my
My build is 14393.10 |
Could you describe precisely how it's failing? Could you try ssh'ing into your machine with "ssh -vvv user@host" and post the output? That will provide details on what the client thinks is going on. |
@aseering This is what I get:
The same if I try with the port 22. Network Error: Connection refused If I try from windows using PuTTY |
Hm... If you run (Also, just making sure: I just noticed that your configuration file is set to listen on port 9999; are you specifying that port on the client when you try to connect?) If sshd is not starting, you could try running If it is running, then it sounds like the server is listening, and the client is sending, but the packets aren't getting through. That sounds like a network or firewall issue of some sort. That's going to be very specific to your setup, but I'd suggest starting by taking a close look at any firewalls (even the regular Windows firewall) that you might be running. |
@aseering Hi, when I run
I tried what you suggest and I run:
And now I am able to connect to ssh into WSL from windows and from the same bash console. The problem now is that the service is not started when I close and open Bash console. Is there any way to make it start when Bash console is opened? I have installed MySQL and is the same problem, service is not started when Bash console is opened. I guess I will install more services such as mongoDB, etc. It would be nice if there is a way to make then start witn bash console start. One more detail, for some reason I am not able to connect via ssh to WSL from Intellij Idea (Installed in Windows) to add a remote interpreter for a Django project. |
If you have troubles running OpenSSH server check out dropbear sudo apt-get install dropbear
sudo dropbear
...
ssh localhost It's simple and lightweight |
@Gocht -- I've posted here about how to launch sshd at startup and keep it running without a (visible) terminal window open. If you want to run sshd on demand, you can follow all but the last instruction. |
For some weird reason my script reports that it cannot find |
@aseering I have some doubts about your post. First, this is what I get when I run
Previoulsly to execute the command above I started ssh service with
Second, where should live the file Since I don't know how to allow traffic in port 22 I have disable (for testing) the complete firewall. I have installed openssh for windows (only client) and now I am able to connect to ubuntu ssh server via windows' command tool, but I can't do this via Intelliij Idea, it get loading and always trying to connect. |
It's /usr/sbin/sshd
It's ok to get some errors there. The only thing you need from this command is key generation on the first run. |
|
Told you those errors are fine. It probably already generated your keys. Move on to the next steps. |
@Gocht -- as @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. |
@aseering @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. |
What error do you get in IntelliJ? I use rubymine's and webstorm's remote interpreters (ruby and node respectively) and everything seems to |
@dreyks I will describe what I am doing:
But then when I hit OK, it shows a message 'connecting to 127.0.0.1...' and never connect, I have wait hours... |
sshd works on localhost, but can't connect by public ip, disable firewall didn't help either, any help here ? |
make sure you have Listen 0.0.0.0 in your /etc/ssh/sshd_config |
@dreyks Yes, ListenAddress 0.0.0.0 |
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 |
this is already fixed in 14942 |
Thanks @dreyks for chiming in. Once validated, it will be helpful if we can close this issue out on build 14942. |
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! :) |
Thanks @galvesribeiro for validating. Closing the issue out. |
+1 |
Hello I'm wondering if the devs have made any step forward on making ssh server to work?
The text was updated successfully, but these errors were encountered: