logo elektroda
logo elektroda
X
logo elektroda
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Błąd OpenSSH przy tworzeniu katalogu na Windows 7 - jak rozwiązać?

Sciepa 30 Kwi 2012 23:03 3616 4
  • #1 10847956
    Sciepa
    Poziom 9  
    Posty: 40
    Ocena: 3
    Chce zainstalować OpenSSH na windows 7, ale mam mały problem z konfiguracją serwera.
    Robię dokładnie jak jest tutaj, ale wyrzuca mi błąd przy próbie połączenia z serwerem:
    Cytat:

    Could not create directory '/home/.ssh'.
    ssh_exchange_identification: Connection closed by remote host

    Próbowałem ręcznie tworzyć katalog .ssh, ale to nie pomagało.
  • #2 10848356
    Jacq88
    Poziom 20  
    Posty: 310
    Pomógł: 31
    Ocena: 40
    Witaj,

    Próbowałeś ponowić czynności z uprawnieniami administratora(mam na myśli te wykonywane w wierszu poleceń)?

    Pozdrawiam,
    Jacek
  • #3 10848427
    stasiaktel
    Poziom 13  
    Posty: 43
    Pomógł: 4
    Ocena: 1
    Zmieniłeś zgodnie z instrukcją konfigurację folderu?

    Cytat:
    Since I’m not using cygwin but open ssh for windows, it’s only the declaration of the home folder in openssh that I care for. I edited the file in c:\Program Files (x86)\OpenSSH\etc\passwd and changed the value before last (each value is separated by a . I changed the home folder for my user to /cygdrive/c/Users/<username>. Now I can go in my c:\Users\<username> folder and create a folder called .ssh. I recommend creating this folder using the command window as I don’t think it is possible with the graphical interface.
  • #4 10849819
    Sciepa
    Poziom 9  
    Posty: 40
    Ocena: 3
    Dzięki stasiaktel to było to. Pojawił się natomiast kolejny problem.
    Przy próbie połączeniu z serwerem przez komende ssh, następuje połączenie wyświetla się baner i mam wpisać hasło. Przy wpisaniu błędnego wyświetla się access denied, a przy dobrym nic się nie dzieje tylko jakby konsola się zawiesiła.

    W trybie debugera mam coś takiego po stronie serwera:
    
    C:\Program Files (x86)\OpenSSH\usr\sbin>sshd -d -d -d
    debug2: read_server_config: filename /etc/sshd_config
    debug1: sshd version OpenSSH_3.8.1p1
    debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
    debug1: read PEM private key done: type RSA
    debug1: private host key: #0 type 1 RSA
    debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
    debug1: read PEM private key done: type DSA
    debug1: private host key: #1 type 2 DSA
    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.
    Connection from 127.0.0.1 port 7987
    debug1: Client protocol version 2.0; client software version OpenSSH_3.8.1p1
    debug1: match: OpenSSH_3.8.1p1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
    debug1: list_hostkey_types: ssh-rsa,ssh-dss
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
    up1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
    up1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
    debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    debug2: dh_gen_key: priv key bits set: 124/256
    debug2: bits set: 521/1024
    debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
    debug2: bits set: 536/1024
    debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: KEX done
    debug1: userauth-request for user grzesiek service ssh-connection method none
    debug1: attempt 0 failures 0
    debug2: input_userauth_request: setting up authctxt for grzesiek
    debug2: input_userauth_request: try method none
    debug1: userauth_banner: sent
    Failed none for grzesiek from 127.0.0.1 port 7987 ssh2
    debug1: userauth-request for user grzesiek service ssh-connection method keyboar
    d-interactive
    debug1: attempt 1 failures 1
    debug2: input_userauth_request: try method keyboard-interactive
    debug1: keyboard-interactive devs
    debug1: auth2_challenge: user=grzesiek devs=
    debug1: kbdint_alloc: devices ''
    debug2: auth2_challenge_start: devices
    Failed keyboard-interactive for grzesiek from 127.0.0.1 port 7987 ssh2
    debug1: userauth-request for user grzesiek service ssh-connection method passwor
    d
    debug1: attempt 2 failures 2
    debug2: input_userauth_request: try method password
    Accepted password for grzesiek from 127.0.0.1 port 7987 ssh2
    debug1: Entering interactive session for SSH2.
    debug2: fd 3 setting O_NONBLOCK
    debug2: fd 7 setting O_NONBLOCK
    debug1: server_init_dispatch_20
    debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 16384
    debug1: input_session_request
    debug1: channel 0: new [server-session]
    debug1: session_new: init
    debug1: session_new: session 0
    debug1: session_open: channel 0
    debug1: session_open: session 0: link with channel 0
    debug1: server_input_channel_open: confirm session
    debug1: server_input_channel_req: channel 0 request pty-req reply 0
    debug1: session_by_channel: session 0 channel 0
    debug1: session_input_channel_req: session 0 req pty-req
    debug1: Allocating pty.
    debug1: session_pty_req: session 0 alloc /dev/tty6
    debug3: tty_parse_modes: SSH2 n_bytes 246
    debug3: tty_parse_modes: ospeed 38400
    debug3: tty_parse_modes: ispeed 38400
    debug3: tty_parse_modes: 1 3
    debug3: tty_parse_modes: 2 28
    debug3: tty_parse_modes: 3 127
    debug3: tty_parse_modes: 4 21
    debug3: tty_parse_modes: 5 4
    debug3: tty_parse_modes: 6 0
    debug3: tty_parse_modes: 7 0
    debug3: tty_parse_modes: 8 17
    debug3: tty_parse_modes: 9 19
    debug3: tty_parse_modes: 10 26
    debug3: tty_parse_modes: 12 18
    debug3: tty_parse_modes: 13 23
    debug3: tty_parse_modes: 14 22
    debug3: tty_parse_modes: 18 15
    debug3: tty_parse_modes: 30 0
    debug3: tty_parse_modes: 31 0
    debug3: tty_parse_modes: 32 0
    debug3: tty_parse_modes: 33 0
    debug3: tty_parse_modes: 34 0
    debug3: tty_parse_modes: 35 0
    debug3: tty_parse_modes: 36 1
    debug3: tty_parse_modes: 37 0
    debug3: tty_parse_modes: 38 1
    debug3: tty_parse_modes: 39 0
    debug3: tty_parse_modes: 40 0
    debug3: tty_parse_modes: 41 0
    debug3: tty_parse_modes: 50 1
    debug3: tty_parse_modes: 51 1
    debug3: tty_parse_modes: 53 1
    debug3: tty_parse_modes: 54 0
    debug3: tty_parse_modes: 55 0
    debug3: tty_parse_modes: 56 0
    debug3: tty_parse_modes: 57 0
    debug3: tty_parse_modes: 58 0
    debug3: tty_parse_modes: 59 1
    debug3: tty_parse_modes: 60 0
    debug3: tty_parse_modes: 61 0
    debug3: tty_parse_modes: 70 1
    debug3: tty_parse_modes: 71 0
    debug3: tty_parse_modes: 72 1
    debug3: tty_parse_modes: 73 0
    debug3: tty_parse_modes: 74 0
    debug3: tty_parse_modes: 75 0
    debug3: tty_parse_modes: 90 1
    debug3: tty_parse_modes: 91 1
    debug3: tty_parse_modes: 92 0
    debug3: tty_parse_modes: 93 0
    debug1: server_input_channel_req: channel 0 request shell reply 0
    debug1: session_by_channel: session 0 channel 0
    debug1: session_input_channel_req: session 0 req shell
    debug2: fd 4 setting TCP_NODELAY
    debug2: channel 0: rfd 9 isatty
    debug2: fd 9 setting O_NONBLOCK
    debug2: fd 8 setting O_NONBLOCK
          1 [main] switch 3484 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
        677 [main] switch 3484 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          0 [main] switch 6080 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
        796 [main] switch 6080 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 4220 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1201 [main] switch 4220 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 4200 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1186 [main] switch 4200 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 6080 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1388 [main] switch 6080 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 168 exception::handle: Exception: STATUS_ACCESS_VIOLATION
       1246 [main] switch 168 open_stackdumpfile: Dumping stack trace to switch.exe.
    stackdump
    debug1: Received SIGCHLD.
    debug1: session_by_pid: pid 3984
    debug1: session_exit_message: session 0 channel 0 pid 3984
    debug2: channel 0: request exit-status
    debug1: session_exit_message: release channel 0
    debug2: channel 0: write failed
    debug2: channel 0: close_write
    debug2: channel 0: output open -> closed
    debug1: session_close: session 0 pid 3984
    debug1: session_pty_cleanup: session 0 release /dev/tty6
    syslogin_perform_logout: logout() returned an error
    debug2: notify_done: reading
    debug2: channel 0: read<=0 rfd 9 len 0
    debug2: channel 0: read failed
    debug2: channel 0: close_read
    debug2: channel 0: input open -> drain
    debug2: channel 0: ibuf empty
    debug2: channel 0: send eof
    debug2: channel 0: input drain -> closed
    debug2: channel 0: send close
    debug3: channel 0: will not send data after close
    debug2: channel 0: rcvd close
    debug3: channel 0: will not send data after close
    debug2: channel 0: is dead
    debug2: channel 0: garbage collecting
    debug1: channel 0: free: server-session, nchannels 1
    debug3: channel 0: status: The following connections are open:
      #0 server-session (t4 r0 i3/0 o3/0 fd -1/-1)
    
    debug3: channel 0: close_fds r -1 w -1 e -1
    Connection closed by 127.0.0.1
    debug1: do_cleanup
    Closing connection to 127.0.0.1
    
    C:\Program Files (x86)\OpenSSH\usr\sbin>


    Po stronie klienta:
    
    C:\Windows\system32>ssh grzesiek@localhost
    
                                ****USAGE WARNING****
    
    This is a private computer system. This computer system, including all
    related equipment, networks, and network devices (specifically including
    Internet access) are provided only for authorized use. This computer system
    may be monitored for all lawful purposes, including to ensure that its use
    is authorized, for management of the system, to facilitate protection against
    unauthorized access, and to verify security procedures, survivability, and
    operational security. Monitoring includes active attacks by authorized entities
    to test or verify the security of this system. During monitoring, information
    may be examined, recorded, copied and used for authorized purposes. All
    information, including personal information, placed or sent over this system
    may be monitored.
    
    Use of this computer system, authorized or unauthorized, constitutes consent
    to monitoring of this system. Unauthorized use may subject you to criminal
    prosecution. Evidence of unauthorized use collected during monitoring may be
    used for administrative, criminal, or other adverse action. Use of this system
    constitutes consent to monitoring for these purposes.
    
    
    grzesiek@localhost's password:
    debug3: Trying to reverse map address 127.0.0.1.
    debug1: permanently_set_uid: 1000/513
    debug3: Copy environment: !C:=C:\\Program Files (x86)\\OpenSSH\\usr\\sbin
    debug3: Copy environment: !EXITCODE=00000000
    debug3: Copy environment: ALLUSERSPROFILE=C:\\ProgramData
    debug3: Copy environment: APPDATA=C:\\Users\\Grzesiek\\AppData\\Roaming
    debug3: Copy environment: AVR32_HOME=C:\\WinAVR-20100110
    debug3: Copy environment: COMMONPROGRAMFILES=C:\\Program Files (x86)\\Common Fil
    es
    debug3: Copy environment: COMMONPROGRAMFILES(X86)=C:\\Program Files (x86)\\Commo
    n Files
    debug3: Copy environment: COMMONPROGRAMW6432=C:\\Program Files\\Common Files
    debug3: Copy environment: COMPUTERNAME=GRZESIEK-PC
    debug3: Copy environment: COMSPEC=C:\\Windows\\system32\\cmd.exe
    debug3: Copy environment: CYGWIN=tty
    debug3: Copy environment: FP_NO_HOST_CHECK=NO
    debug3: Copy environment: HOMEDRIVE=C:
    debug3: Copy environment: HOMEPATH=\\Users\\Grzesiek
    debug3: Copy environment: LOCALAPPDATA=C:\\Users\\Grzesiek\\AppData\\Local
    debug3: Copy environment: LOGONSERVER=\\\\GRZESIEK-PC
    debug3: Copy environment: NUMBER_OF_PROCESSORS=4
    debug3: Copy environment: OS=Windows_NT
    debug3: Copy environment: PATH=/cygdrive/c/Program Files (x86)/NVIDIA Corporatio
    n/PhysX/Common:/cygdrive/c/oraclexe/app/oracle/product/10.2.0/server/bin:/cygdri
    ve/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/system32/wbem:/cyg
    drive/c/WinAVR-20100110/bin:/cygdrive/c/WinAVR-20100110/utils/bin:/cygdrive/c/Pr
    ogram Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/Syste
    m32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/
    100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cy
    gdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/xampp/php:/
    cygdrive/c/Program Files (x86)/QuickTime Alternative/QTSystem:/cygdrive/c/QtSDK:
    /usr/bin
    debug3: Copy environment: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.W
    SH;.MSC
    debug3: Copy environment: PROCESSOR_ARCHITECTURE=x86
    debug3: Copy environment: PROCESSOR_ARCHITEW6432=AMD64
    debug3: Copy environment: PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Steppin
    g 7, GenuineIntel
    debug3: Copy environment: PROCESSOR_LEVEL=6
    debug3: Copy environment: PROCESSOR_REVISION=2a07
    debug3: Copy environment: PROGRAMDATA=C:\\ProgramData
    debug3: Copy environment: PROGRAMFILES=C:\\Program Files (x86)
    debug3: Copy environment: PROGRAMFILES(X86)=C:\\Program Files (x86)
    debug3: Copy environment: PROGRAMW6432=C:\\Program Files
    debug3: Copy environment: PROMPT=$P$G
    debug3: Copy environment: PSMODULEPATH=C:\\Windows\\system32\\WindowsPowerShell\
    \v1.0\\Modules\\
    debug3: Copy environment: PUBLIC=C:\\Users\\Public
    debug3: Copy environment: SYSTEMDRIVE=C:
    debug3: Copy environment: SYSTEMROOT=C:\\Windows
    debug3: Copy environment: TEMP=/cygdrive/c/Users/Grzesiek/AppData/Local/Temp
    debug3: Copy environment: TMP=/cygdrive/c/Users/Grzesiek/AppData/Local/Temp
    debug3: Copy environment: USERDOMAIN=Grzesiek-PC
    debug3: Copy environment: USERNAME=Grzesiek
    debug3: Copy environment: USERPROFILE=C:\\Users\\Grzesiek
    debug3: Copy environment: VBOX_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBo
    x\\
    debug3: Copy environment: VS100COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visu
    al Studio 10.0\\Common7\\Tools\\
    debug3: Copy environment: WINDIR=C:\\Windows
    debug3: Copy environment: TERM=cygwin
    debug3: Copy environment: HOME=/cygdrive/c/Users/Grzesiek
    Environment:
      !C:=C:\Program Files (x86)\OpenSSH\usr\sbin
      !EXITCODE=00000000
      ALLUSERSPROFILE=C:\ProgramData
      APPDATA=C:\Users\Grzesiek\AppData\Roaming
      AVR32_HOME=C:\WinAVR-20100110
      COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files
      COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
      COMMONPROGRAMW6432=C:\Program Files\Common Files
      COMPUTERNAME=GRZESIEK-PC
      COMSPEC=C:\Windows\system32\cmd.exe
      CYGWIN=tty
      FP_NO_HOST_CHECK=NO
      HOMEDRIVE=C:
      HOMEPATH=\Users\Grzesiek
      LOCALAPPDATA=C:\Users\Grzesiek\AppData\Local
      LOGONSERVER=\\GRZESIEK-PC
      NUMBER_OF_PROCESSORS=4
      OS=Windows_NT
      PATH=/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive
    /c/oraclexe/app/oracle/product/10.2.0/server/bin:/cygdrive/c/Windows/system32:/c
    ygdrive/c/Windows:/cygdrive/c/Windows/syst
      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
      PROCESSOR_ARCHITECTURE=x86
      PROCESSOR_ARCHITEW6432=AMD64
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=2a07
      PROGRAMDATA=C:\ProgramData
      PROGRAMFILES=C:\Program Files (x86)
      PROGRAMFILES(X86)=C:\Program Files (x86)
      PROGRAMW6432=C:\Program Files
      PROMPT=$P$G
      PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
      PUBLIC=C:\Users\Public
      SYSTEMDRIVE=C:
      SYSTEMROOT=C:\Windows
      TEMP=/cygdrive/c/Users/Grzesiek/AppData/Local/Temp
      TMP=/cygdrive/c/Users/Grzesiek/AppData/Local/Temp
      USERDOMAIN=Grzesiek-PC
      USERNAME=Grzesiek
      USERPROFILE=C:\Users\Grzesiek
      VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
      VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Too
    ls\
      WINDIR=C:\Windows
      TERM=cygwin
      HOME=/cygdrive/c/Users/Grzesiek
      USER=Grzesiek
      LOGNAME=Grzesiek
      MAIL=/var/spool/mail/Grzesiek
      SHELL=/bin/switch
      SSH_CLIENT=127.0.0.1 7987 22
      SSH_CONNECTION=127.0.0.1 7987 127.0.0.1 22
      SSH_TTY=/dev/tty6
    debug3: channel 0: close_fds r -1 w -1 e -1
          1 [main] switch 3484 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
        677 [main] switch 3484 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          0 [main] switch 6080 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
        796 [main] switch 6080 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 4220 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1201 [main] switch 4220 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 4200 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1186 [main] switch 4200 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 6080 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    
       1388 [main] switch 6080 open_stackdumpfile: Dumping stack trace to switch.exe
    .stackdump
          1 [main] switch 168 exception::handle: Exception: STATUS_ACCESS_VIOLATION
       1246 [main] switch 168 open_stackdumpfile: Dumping stack trace to switch.exe.
    stackdump
    Connection to localhost closed.
    
    C:\Windows\system32>


    Oprócz tego przy próbie uwierzytelnieniem przez klucz publiczny mam cos takiego:
    C:\Program Files (x86)\OpenSSH\usr\sbin>sshd -d -d -d
    debug2: read_server_config: filename /etc/sshd_config
    debug1: sshd version OpenSSH_3.8.1p1
    debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
    debug1: read PEM private key done: type RSA
    debug1: private host key: #0 type 1 RSA
    debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
    debug1: read PEM private key done: type DSA
    debug1: private host key: #1 type 2 DSA
    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.
    Connection from 127.0.0.1 port 9132
    debug1: Client protocol version 2.0; client software version libssh2_1.1
    debug1: no match: libssh2_1.1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
    debug1: list_hostkey_types: ssh-rsa,ssh-dss
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
    up1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: diffie-hellman-group14-sha1,diffie-hellman-group-exch
    ange-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes
    128-cbc,blowfish-cbc,arcfour,cast128-cbc,3des-cbc
    debug2: kex_parse_kexinit: aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes
    128-cbc,blowfish-cbc,arcfour,cast128-cbc,3des-cbc
    debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripe
    md160,hmac-ripemd160@openssh.com
    debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripe
    md160,hmac-ripemd160@openssh.com
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_init: found hmac-sha1
    debug1: kex: client->server aes256-cbc hmac-sha1 none
    debug2: mac_init: found hmac-sha1
    debug1: kex: server->client aes256-cbc hmac-sha1 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
    debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    debug2: dh_gen_key: priv key bits set: 251/512
    debug2: bits set: 727/1536
    debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
    debug2: bits set: 756/1536
    debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: KEX done
    debug1: userauth-request for user grzesiek service ssh-connection method none
    debug1: attempt 0 failures 0
    debug2: input_userauth_request: setting up authctxt for grzesiek
    debug2: input_userauth_request: try method none
    debug1: userauth_banner: sent
    Failed none for grzesiek from 127.0.0.1 port 9132 ssh2
    debug1: userauth-request for user grzesiek service ssh-connection method publick
    ey
    debug1: attempt 1 failures 1
    debug2: input_userauth_request: try method publickey
    debug1: test whether pkalg/pkblob are acceptable
    debug1: temporarily_use_uid: 1000/513 (e=1000/513)
    debug1: trying public key file /cygdrive/c/Users/Grzesiek/.ssh/authorized_keys
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek/.ssh'
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek'
    Authentication refused: bad ownership or modes for directory /cygdrive/c/Users/G
    rzesiek
    debug1: restore_uid: (unprivileged)
    debug1: temporarily_use_uid: 1000/513 (e=1000/513)
    debug1: trying public key file /cygdrive/c/Users/Grzesiek/.ssh/authorized_keys
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek/.ssh'
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek'
    Authentication refused: bad ownership or modes for directory /cygdrive/c/Users/G
    rzesiek
    debug1: restore_uid: (unprivileged)
    debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
    Failed publickey for grzesiek from 127.0.0.1 port 9132 ssh2
    dispatch_protocol_error: type 90 seq 7
    
    C:\Program Files (x86)\OpenSSH\usr\sbin>sshd -d -d -d
    debug2: read_server_config: filename /etc/sshd_config
    debug1: sshd version OpenSSH_3.8.1p1
    debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
    debug1: read PEM private key done: type RSA
    debug1: private host key: #0 type 1 RSA
    debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
    debug1: read PEM private key done: type DSA
    debug1: private host key: #1 type 2 DSA
    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.
    Connection from 127.0.0.1 port 9481
    debug1: Client protocol version 2.0; client software version libssh2_1.1
    debug1: no match: libssh2_1.1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
    debug1: list_hostkey_types: ssh-rsa,ssh-dss
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
    up1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
    aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
    tr
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
    ssh.com,hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: diffie-hellman-group14-sha1,diffie-hellman-group-exch
    ange-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes
    128-cbc,blowfish-cbc,arcfour,cast128-cbc,3des-cbc
    debug2: kex_parse_kexinit: aes256-cbc,rijndael-cbc@lysator.liu.se,aes192-cbc,aes
    128-cbc,blowfish-cbc,arcfour,cast128-cbc,3des-cbc
    debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripe
    md160,hmac-ripemd160@openssh.com
    debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripe
    md160,hmac-ripemd160@openssh.com
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit: none,zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_init: found hmac-sha1
    debug1: kex: client->server aes256-cbc hmac-sha1 none
    debug2: mac_init: found hmac-sha1
    debug1: kex: server->client aes256-cbc hmac-sha1 none
    debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
    debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
    debug2: dh_gen_key: priv key bits set: 251/512
    debug2: bits set: 789/1536
    debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
    debug2: bits set: 743/1536
    debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: KEX done
    debug1: userauth-request for user grzesiek service ssh-connection method none
    debug1: attempt 0 failures 0
    debug2: input_userauth_request: setting up authctxt for grzesiek
    debug2: input_userauth_request: try method none
    debug1: userauth_banner: sent
    Failed none for grzesiek from 127.0.0.1 port 9481 ssh2
    debug1: userauth-request for user grzesiek service ssh-connection method publick
    ey
    debug1: attempt 1 failures 1
    debug2: input_userauth_request: try method publickey
    debug1: test whether pkalg/pkblob are acceptable
    debug1: temporarily_use_uid: 1000/513 (e=1000/513)
    debug1: trying public key file /cygdrive/c/Users/Grzesiek/.ssh/authorized_keys
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek/.ssh'
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek'
    Authentication refused: bad ownership or modes for directory /cygdrive/c/Users/G
    rzesiek
    debug1: restore_uid: (unprivileged)
    debug1: temporarily_use_uid: 1000/513 (e=1000/513)
    debug1: trying public key file /cygdrive/c/Users/Grzesiek/.ssh/authorized_keys
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek/.ssh'
    debug3: secure_filename: checking '/cygdrive/c/Users/Grzesiek'
    Authentication refused: bad ownership or modes for directory /cygdrive/c/Users/G
    rzesiek
    debug1: restore_uid: (unprivileged)
    debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa
    Failed publickey for grzesiek from 127.0.0.1 port 9481 ssh2
    dispatch_protocol_error: type 90 seq 7
    ▬
    C:\Program Files (x86)\OpenSSH\usr\sbin>


    Zmieniałem prawa dla folderów .ssh, grzesiek i dla pliku authorized_keys ale nie pomagało
  • #5 10851763
    stasiaktel
    Poziom 13  
    Posty: 43
    Pomógł: 4
    Ocena: 1
    Prawa zmieniałeś z polecenia chown i chmod w cygwin'ie?


    ogólnie zestawia połączenie poprawnie
    Cytat:
    Accepted password for grzesiek from 127.0.0.1 port 7987 ssh2


    po czym się wysypuje
    Cytat:
    1 [main] switch 168 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    1246 [main] switch
    168 open_stackdumpfile: Dumping stack trace to switch.exe.
    stackdump


    Może problem z tym że uruchomione na tej samej maszynie... ale troche mi brak pomysłu...
REKLAMA