Skip to content

any status update on ssh server? #300

Closed

Description

@Skaveny

Hello I'm wondering if the devs have made any step forward on making ssh server to work?

Activity

  1. russalex commented on Apr 29, 2016

    @russalex
    Contributor

    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.

  2. MadcowD commented on May 2, 2016

    @MadcowD

    Big requisite to implementing the SSH server is #308

  3. dreyks commented on May 29, 2016

    @dreyks

    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 -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
    $

    chroot("/var/run/sshd"): Function not implemented [preauth] Seems like something missing in the kernel

  4. dreyks commented on May 29, 2016

    @dreyks

    Actually changing UsePrivilegeSeparation to no in /etc/ssh/sshd_config fixed this issue, and I can fully connect to ssh server 🎆

  5. leon-pilot commented on May 30, 2016

    @leon-pilot

    Afff... I get:

    $ 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.

  6. garciat commented on May 30, 2016

    @garciat

    I can connect thanks to dryks suggestion. However, I get: PTY allocation request failed on channel 0 so I get no shell at all.

  7. xyzith commented on Jun 1, 2016

    @xyzith

    León Álvarez (@leon-pilot)
    try edit /etc/ssh/sshd_config

    #ListenAddress 0.0.0.0 => ListenAddress 0.0.0.0
    remove the # sign

  8. mobluse commented on Jun 3, 2016

    @mobluse

    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.

    pi@LENOVO5:~$ sudo service ssh start
     * Starting OpenBSD Secure Shell server sshd                           [ OK ]
    pi@LENOVO5:~$ ssh pi@localhost
    pi@localhost's password:
    Permission denied, please try again.
    pi@localhost's password:
    Permission denied, please try again.
    

    [Update: It works now with Build 14361.]

  9. sunilmut commented on Jun 6, 2016

    @sunilmut
    Member

    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.

  10. garciat commented on Jun 8, 2016

    @garciat

    As of build 14361, with the right sshd configuration (as seen above), this is now working.

  11. Skaveny commented on Jun 8, 2016

    @Skaveny
    Author

    Which of the settings do you mean?

    When did build 14361 get released?

    Skickat från min iPhone

    8 juni 2016 kl. 21:54 skrev Gabriel Garcia [email protected]:

    As of build 14361, with the right sshd configuration (as seen above), this is now working.

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the thread.

  12. dreyks commented on Jun 8, 2016

    @dreyks

    today or maybe yesterday. my laptop is rebooting now to install 14361

  13. garciat commented on Jun 9, 2016

    @garciat

    golab

    ListenAddress 0.0.0.0
    UsePrivilegeSeparation no
    PasswordAuthentication yes
    
  14. 20 remaining items

  15. aseering commented on Aug 11, 2016

    @aseering
    Contributor

    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.

  16. Gocht commented on Aug 11, 2016

    @Gocht

    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.

  17. dreyks commented on Aug 11, 2016

    @dreyks

    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

  18. Gocht commented on Aug 11, 2016

    @Gocht

    Roman Usherenko (@dreyks) I will describe what I am doing:

    • Start Bash on Windows
    • Start SSH service in Bash console
    • 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...

  19. Ehekatl commented on Aug 12, 2016

    @Ehekatl

    sshd works on localhost, but can't connect by public ip, disable firewall didn't help either, any help here ?

  20. dreyks commented on Aug 12, 2016

    @dreyks

    make sure you have Listen 0.0.0.0 in your /etc/ssh/sshd_config

  21. Gocht commented on Aug 13, 2016

    @Gocht

    Roman Usherenko (@dreyks) Yes, ListenAddress 0.0.0.0

  22. computergeek125 commented on Aug 23, 2016

    @computergeek125

    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.

  23. galvesribeiro commented on Oct 10, 2016

    @galvesribeiro

    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...

  24. dreyks commented on Oct 10, 2016

    @dreyks

    this is already fixed in 14942

  25. sunilmut commented on Oct 10, 2016

    @sunilmut
    Member

    Thanks Roman Usherenko (@dreyks) for chiming in. Once validated, it will be helpful if we can close this issue out on build 14942.

  26. galvesribeiro commented on Oct 11, 2016

    @galvesribeiro

    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! :)

  27. sunilmut commented on Oct 11, 2016

    @sunilmut
    Member

    Thanks Gutemberg Ribeiro (@galvesribeiro) for validating. Closing the issue out.

  28. MathiasMagnus commented on Oct 23, 2016

    @MathiasMagnus

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions