7 Replies Latest reply on Feb 18, 2015 1:40 AM by mhahn

    Fix ssh connect issues on Edison

    cvl-skubriev

      After a certain time we cannot establish connection with edison.

      But existing ssh connection still worked normally.

      System journal let's me following errors:


      Feb 17 06:37:20 edison systemd[1]: Starting OpenSSH Per-Connection Daemon (192.168.128.68:40861)...
      Feb 17 06:37:20 edison systemd[1]: Failed to create cgroup /system.slice/system-sshd.slice/sshd@15-192.168.128.27:22-192.168.128.68:40861.service: No such file or directory
      Feb 17 06:37:20 edison systemd[1]: Started OpenSSH Per-Connection Daemon (192.168.128.68:40861).
      Feb 17 06:37:20 edison systemd[6923]: Failed at step CGROUP spawning /usr/sbin/sshd: No such file or directory
      

       

      I cannot found any useful information about this errors. I decided to check on an separate service, running in next console.

      I run separate sshd on edison an get following erros, while client connecting to server:

      on server

       

      Starting session: shell for root from 192.168.128.68 port 33655
      debug2: fd 3 setting TCP_NODELAY
      debug3: packet_set_tos: set IP_TOS 0x08
      debug2: fd 8 setting O_NONBLOCK
      debug2: fd 7 setting O_NONBLOCK
      debug2: fd 10 setting O_NONBLOCK
      debug2: channel 0: read 34 from efd 10
      debug2: channel 0: rwin 1048576 elen 34 euse 1
      debug2: channel 0: sent ext data 34
      debug2: channel 0: read 230 from efd 10
      debug2: channel 0: rwin 1048542 elen 230 euse 1
      debug2: channel 0: sent ext data 230
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/13 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/14 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/15 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/16 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/17 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      debug1: Got 100/18 for keepalive
      debug2: channel 0: request keepalive@openssh.com confirm 1
      

       

      on client:

       

      debug2: channel 0: open confirm rwindow 0 rmax 32768
      debug2: channel_input_status_confirm: type 100 id 0
      PTY allocation request failed on channel 0
      debug2: channel 0: rcvd adjust 2097152
      debug2: channel_input_status_confirm: type 99 id 0
      debug2: shell request accepted on channel 0
      debug2: channel 0: rcvd ext data 34
      debug1: permanently_set_uid: 0/0
      debug2: channel 0: written 34 to efd 8
      debug2: channel 0: rcvd ext data 230
      Environment:
        USER=root
        LOGNAME=root
        HOME=/home/root
        PATH=/usr/bin:/bin:/usr/sbin:/sbin
        MAIL=/var/mail/root
        SHELL=/bin/sh
        SSH_CLIENT=192.168.128.68 33655 2222
        SSH_CONNECTION=192.168.128.68 33655 192.168.128.27 2222
      debug2: channel 0: written 230 to efd 8
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      debug1: client_input_channel_req: channel 0 rtype keepalive@openssh.com reply 1
      ...
      ^Cdebug1: channel 0: free: client-session, nchannels 1
      debug3: channel 0: status: The following connections are open:
        #0 client-session (t4 r0 i0/0 o0/0 fd 6/7 cc -1)
      
      debug1: Killed by signal 2.
      

       

      I think there is a network problem with wi-fi interface and it's configuration on pre-installed default edison system.