Server refused our key

Advertisement

dashah76
Joined:
Posts:
9
Location:
india

Server refused our key

Hi
I have installed OpenSSH for Windows 3.8.1 on a Windows 2000 server. And followed the instructions as per he documents provide. When I create public and private key using PuTTYgen and paste the public key in. ssh folder with rights as mentioned (i.e 700) and the public key in authorized_keys with rights 644.
When I try to acess using the public and private key using PuTTY, I get error "server refused our key" with the error as below
. 2008-12-10 06:00:17.640 --------------------------------------------------------------------------
. 2008-12-10 06:00:17.640 WinSCP Version 4.1.8 (Build 415) (OS 5.0.2195 Service Pack 4)
. 2008-12-10 06:00:17.640 Login time: Wednesday, December 10, 2008 6:00:17 AM
. 2008-12-10 06:00:17.640 --------------------------------------------------------------------------
. 2008-12-10 06:00:17.640 Session name: new@192.168.0.25
. 2008-12-10 06:00:17.640 Host name: 192.168.0.25 (Port: 22)
. 2008-12-10 06:00:17.640 User name: new (Password: No, Key file: Yes)
. 2008-12-10 06:00:17.640 Tunnel: No
. 2008-12-10 06:00:17.640 Transfer Protocol: SFTP (SCP)
. 2008-12-10 06:00:17.640 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2008-12-10 06:00:17.640 Proxy: none
. 2008-12-10 06:00:17.640 SSH protocol version: 2; Compression: No
. 2008-12-10 06:00:17.640 Bypass authentication: No
. 2008-12-10 06:00:17.640 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2008-12-10 06:00:17.640 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2008-12-10 06:00:17.640 SSH Bugs: -,-,-,-,-,-,-,-
. 2008-12-10 06:00:17.640 SFTP Bugs: -,-
. 2008-12-10 06:00:17.640 Return code variable: Autodetect; Lookup user groups: Yes
. 2008-12-10 06:00:17.640 Shell: default, EOL: 0
. 2008-12-10 06:00:17.640 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2008-12-10 06:00:17.640 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2008-12-10 06:00:17.640 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2008-12-10 06:00:17.640 Cache directory changes: Yes, Permanent: Yes
. 2008-12-10 06:00:17.640 DST mode: 1
. 2008-12-10 06:00:17.640 --------------------------------------------------------------------------
. 2008-12-10 06:00:17.655 Looking up host "192.168.0.25"
. 2008-12-10 06:00:17.655 Connecting to 192.168.0.25 port 22
. 2008-12-10 06:00:17.655 Selecting events 63 for socket 488
. 2008-12-10 06:00:17.655 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.655 Looking for incoming data
. 2008-12-10 06:00:17.655 Looking for network events
. 2008-12-10 06:00:17.655 Detected network event
. 2008-12-10 06:00:17.655 Enumerating network events for socket 488
. 2008-12-10 06:00:17.655 Enumerated 18 network events making 18 cumulative events for socket 488
. 2008-12-10 06:00:17.655 Handling network write event on socket 488 with error 0
. 2008-12-10 06:00:17.655 Handling network connect event on socket 488 with error 0
. 2008-12-10 06:00:17.655 Looking for network events
. 2008-12-10 06:00:17.671 Detected network event
. 2008-12-10 06:00:17.671 Enumerating network events for socket 488
. 2008-12-10 06:00:17.671 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.671 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:17.671 Server version: SSH-2.0-OpenSSH_3.8.1p1
. 2008-12-10 06:00:17.671 We claim version: SSH-2.0-WinSCP_release_4.1.8
. 2008-12-10 06:00:17.671 AcquireCredentialsHandle: No credentials are available in the security package
. 2008-12-10 06:00:17.671 GSSKEX disabled: The operation completed successfully.
. 2008-12-10 06:00:17.671 Using SSH protocol version 2
. 2008-12-10 06:00:17.671 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.671 Looking for incoming data
. 2008-12-10 06:00:17.671 Looking for network events
. 2008-12-10 06:00:17.671 Detected network event
. 2008-12-10 06:00:17.671 Enumerating network events for socket 488
. 2008-12-10 06:00:17.671 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.671 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:17.671 Doing Diffie-Hellman group exchange
. 2008-12-10 06:00:17.671 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.671 Looking for incoming data
. 2008-12-10 06:00:17.671 Looking for network events
. 2008-12-10 06:00:17.687 Detected network event
. 2008-12-10 06:00:17.687 Enumerating network events for socket 488
. 2008-12-10 06:00:17.687 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.687 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:17.687 Doing Diffie-Hellman key exchange with hash SHA-1
. 2008-12-10 06:00:17.749 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.749 Looking for incoming data
. 2008-12-10 06:00:17.749 Looking for network events
. 2008-12-10 06:00:17.765 Detected network event
. 2008-12-10 06:00:17.765 Enumerating network events for socket 488
. 2008-12-10 06:00:17.765 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.765 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:17.843 Selecting events 63 for socket 488
. 2008-12-10 06:00:17.843 Host key fingerprint is:
. 2008-12-10 06:00:17.843 ssh-rsa 1024 d4:b7:01:45:0b:82:31:88:ae:9e:71:3e:af:18:70:af
. 2008-12-10 06:00:17.843 Initialised AES-256 SDCTR client->server encryption
. 2008-12-10 06:00:17.843 Initialised HMAC-SHA1 client->server MAC algorithm
. 2008-12-10 06:00:17.843 Initialised AES-256 SDCTR server->client encryption
. 2008-12-10 06:00:17.843 Initialised HMAC-SHA1 server->client MAC algorithm
. 2008-12-10 06:00:17.843 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.843 Looking for incoming data
. 2008-12-10 06:00:17.843 Looking for network events
. 2008-12-10 06:00:17.843 Detected network event
. 2008-12-10 06:00:17.843 Enumerating network events for socket 488
. 2008-12-10 06:00:17.843 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.843 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:17.843 Reading private key file "C:\new.ppk"
! 2008-12-10 06:00:17.843 Using username "new".
. 2008-12-10 06:00:17.843 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:17.843 Looking for incoming data
. 2008-12-10 06:00:17.843 Looking for network events
. 2008-12-10 06:00:17.858 Detected network event
. 2008-12-10 06:00:17.858 Enumerating network events for socket 488
. 2008-12-10 06:00:17.858 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:17.858 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:21.483 Offered public key
. 2008-12-10 06:00:21.483 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:21.483 Looking for incoming data
. 2008-12-10 06:00:21.483 Looking for network events
. 2008-12-10 06:00:21.483 Detected network event
. 2008-12-10 06:00:21.483 Enumerating network events for socket 488
. 2008-12-10 06:00:21.483 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:21.483 Handling network read event on socket 488 with error 0
! 2008-12-10 06:00:21.483 Server refused our key
. 2008-12-10 06:00:21.483 Server refused public key
. 2008-12-10 06:00:21.483 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:21.483 Looking for incoming data
. 2008-12-10 06:00:21.483 Looking for network events
. 2008-12-10 06:00:21.483 Detected network event
. 2008-12-10 06:00:21.483 Enumerating network events for socket 488
. 2008-12-10 06:00:21.483 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:21.483 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:21.483 Keyboard-interactive authentication refused
. 2008-12-10 06:00:21.483 Prompt (6, SSH password, , &Password: )
. 2008-12-10 06:00:27.187 Sent password
. 2008-12-10 06:00:27.187 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:27.187 Looking for incoming data
. 2008-12-10 06:00:27.187 Looking for network events
. 2008-12-10 06:00:27.202 Detected network event
. 2008-12-10 06:00:27.202 Enumerating network events for socket 488
. 2008-12-10 06:00:27.202 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:27.202 Handling network read event on socket 488 with error 0
! 2008-12-10 06:00:27.202 Access denied
. 2008-12-10 06:00:27.202 Access denied
. 2008-12-10 06:00:27.202 Prompt (6, SSH password, , &Password: )
. 2008-12-10 06:00:31.483 Sent password
. 2008-12-10 06:00:31.483 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:31.483 Looking for incoming data
. 2008-12-10 06:00:31.483 Looking for network events
. 2008-12-10 06:00:31.483 Detected network event
. 2008-12-10 06:00:31.483 Enumerating network events for socket 488
. 2008-12-10 06:00:31.483 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.483 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.483 Access granted
. 2008-12-10 06:00:31.483 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:31.483 Looking for incoming data
. 2008-12-10 06:00:31.483 Looking for network events
. 2008-12-10 06:00:31.499 Detected network event
. 2008-12-10 06:00:31.499 Enumerating network events for socket 488
. 2008-12-10 06:00:31.499 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.499 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.499 Opened channel for session
. 2008-12-10 06:00:31.499 Waiting for the server to continue with the initialisation
. 2008-12-10 06:00:31.499 Looking for incoming data
. 2008-12-10 06:00:31.499 Looking for network events
. 2008-12-10 06:00:31.530 Detected network event
. 2008-12-10 06:00:31.530 Enumerating network events for socket 488
. 2008-12-10 06:00:31.530 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.530 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.530 Started a shell/command
. 2008-12-10 06:00:31.530 --------------------------------------------------------------------------
. 2008-12-10 06:00:31.530 Using SFTP protocol.
. 2008-12-10 06:00:31.530 Doing startup conversation with host.
> 2008-12-10 06:00:31.530 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2008-12-10 06:00:31.530 01,00,00,00,05,
. 2008-12-10 06:00:31.530 Sent 9 bytes
. 2008-12-10 06:00:31.530 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.530 Looking for network events
. 2008-12-10 06:00:31.530 Timeout waiting for network events
. 2008-12-10 06:00:31.530 Waiting for another 4 bytes
. 2008-12-10 06:00:31.530 Looking for incoming data
. 2008-12-10 06:00:31.530 Looking for network events
. 2008-12-10 06:00:31.577 Detected network event
. 2008-12-10 06:00:31.577 Enumerating network events for socket 488
. 2008-12-10 06:00:31.577 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.577 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.577 Received 9 bytes (0)
. 2008-12-10 06:00:31.577 Read 4 bytes (5 pending)
. 2008-12-10 06:00:31.577 Read 5 bytes (0 pending)
< 2008-12-10 06:00:31.577 Type: SSH_FXP_VERSION, Size: 5, Number: -1
< 2008-12-10 06:00:31.577 02,00,00,00,03,
. 2008-12-10 06:00:31.577 SFTP version 3 negotiated.
. 2008-12-10 06:00:31.577 We believe the server has signed timestamps bug
. 2008-12-10 06:00:31.577 We will use UTF-8 strings for status messages only
. 2008-12-10 06:00:31.577 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2008-12-10 06:00:31.577 Getting current directory name.
. 2008-12-10 06:00:31.577 Getting real path for '.'
> 2008-12-10 06:00:31.577 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
> 2008-12-10 06:00:31.577 10,00,00,00,10,00,00,00,01,2E,
. 2008-12-10 06:00:31.577 Sent 14 bytes
. 2008-12-10 06:00:31.577 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.577 Looking for network events
. 2008-12-10 06:00:31.577 Timeout waiting for network events
. 2008-12-10 06:00:31.577 Waiting for another 4 bytes
. 2008-12-10 06:00:31.577 Looking for incoming data
. 2008-12-10 06:00:31.577 Looking for network events
. 2008-12-10 06:00:31.608 Detected network event
. 2008-12-10 06:00:31.608 Enumerating network events for socket 488
. 2008-12-10 06:00:31.608 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.608 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.608 Received 43 bytes (0)
. 2008-12-10 06:00:31.608 Read 4 bytes (39 pending)
. 2008-12-10 06:00:31.608 Read 39 bytes (0 pending)
< 2008-12-10 06:00:31.608 Type: SSH_FXP_NAME, Size: 39, Number: 16
< 2008-12-10 06:00:31.608 68,00,00,00,10,00,00,00,01,00,00,00,09,2F,68,6F,6D,65,2F,6E,65,77,00,00,00,
< 2008-12-10 06:00:31.608 09,2F,68,6F,6D,65,2F,6E,65,77,00,00,00,00,
. 2008-12-10 06:00:31.608 Real path is '/home/new'
. 2008-12-10 06:00:31.608 Listing directory "/home/new".
> 2008-12-10 06:00:31.608 Type: SSH_FXP_OPENDIR, Size: 18, Number: 267
> 2008-12-10 06:00:31.608 0B,00,00,01,0B,00,00,00,09,2F,68,6F,6D,65,2F,6E,65,77,
. 2008-12-10 06:00:31.608 Sent 22 bytes
. 2008-12-10 06:00:31.608 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.608 Looking for network events
. 2008-12-10 06:00:31.608 Timeout waiting for network events
. 2008-12-10 06:00:31.608 Waiting for another 4 bytes
. 2008-12-10 06:00:31.608 Looking for incoming data
. 2008-12-10 06:00:31.608 Looking for network events
. 2008-12-10 06:00:31.624 Detected network event
. 2008-12-10 06:00:31.624 Enumerating network events for socket 488
. 2008-12-10 06:00:31.624 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.624 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.624 Received 17 bytes (0)
. 2008-12-10 06:00:31.624 Read 4 bytes (13 pending)
. 2008-12-10 06:00:31.624 Read 13 bytes (0 pending)
< 2008-12-10 06:00:31.624 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
< 2008-12-10 06:00:31.624 66,00,00,01,0B,00,00,00,04,00,00,00,00,
> 2008-12-10 06:00:31.624 Type: SSH_FXP_READDIR, Size: 13, Number: 524
> 2008-12-10 06:00:31.624 0C,00,00,02,0C,00,00,00,04,00,00,00,00,
. 2008-12-10 06:00:31.624 Sent 17 bytes
. 2008-12-10 06:00:31.624 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.624 Looking for network events
. 2008-12-10 06:00:31.624 Timeout waiting for network events
. 2008-12-10 06:00:31.624 Waiting for another 4 bytes
. 2008-12-10 06:00:31.624 Looking for incoming data
. 2008-12-10 06:00:31.624 Looking for network events
. 2008-12-10 06:00:31.640 Detected network event
. 2008-12-10 06:00:31.640 Enumerating network events for socket 488
. 2008-12-10 06:00:31.640 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.640 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.640 Received 2047 bytes (0)
. 2008-12-10 06:00:31.640 Read 4 bytes (2043 pending)
. 2008-12-10 06:00:31.640 Read 2043 bytes (0 pending)
< 2008-12-10 06:00:31.640 Type: SSH_FXP_NAME, Size: 2043, Number: 524
< 2008-12-10 06:00:31.655 68,00,00,02,0C,00,00,00,12,00,00,00,01,2E,00,00,00,39,64,72,77,78,72,77,78,
< 2008-12-10 06:00:31.655 2D,2D,2D,20,20,20,31,35,20,3F,3F,3F,3F,3F,3F,3F,3F,20,53,59,53,54,45,4D,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,20,39,20,30,34,3A,33,35,20,2E,
< 2008-12-10 06:00:31.655 00,00,00,0F,00,00,00,00,00,00,10,00,FF,FF,FF,FF,00,00,00,12,00,00,41,F8,49,
< 2008-12-10 06:00:31.655 3F,0D,A7,49,3D,A8,24,00,00,00,02,2E,2E,00,00,00,3A,64,72,77,78,72,77,78,72,
< 2008-12-10 06:00:31.655 2D,78,20,20,20,20,36,20,3F,3F,3F,3F,3F,3F,3F,3F,20,53,59,53,54,45,4D,20,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,34,30,39,36,20,44,65,63,20,20,39,20,30,34,3A,33,30,20,2E,2E,
< 2008-12-10 06:00:31.655 00,00,00,0F,00,00,00,00,00,00,10,00,FF,FF,FF,FF,00,00,00,12,00,00,41,FD,49,
< 2008-12-10 06:00:31.655 3F,0D,93,49,3D,A7,02,00,00,00,04,2E,73,73,68,00,00,00,3C,64,72,77,78,2D,2D,
< 2008-12-10 06:00:31.655 2D,2D,2D,2D,20,20,20,20,32,20,6E,65,77,20,20,20,20,20,20,4E,6F,6E,65,20,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,31,30,20,30,35,3A,35,39,20,
< 2008-12-10 06:00:31.655 2E,73,73,68,00,00,00,0F,00,00,00,00,00,00,10,00,00,00,03,E9,00,00,02,01,00,
< 2008-12-10 06:00:31.655 00,41,C0,49,3F,0D,59,49,3F,0D,59,00,00,00,10,41,70,70,6C,69,63,61,74,69,6F,
< 2008-12-10 06:00:31.655 6E,20,44,61,74,61,00,00,00,48,64,72,77,78,2D,2D,2D,2D,2D,2D,20,20,20,20,34,
< 2008-12-10 06:00:31.655 20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,20,
< 2008-12-10 06:00:31.655 20,30,20,44,65,63,20,31,30,20,30,35,3A,31,33,20,41,70,70,6C,69,63,61,74,69,
< 2008-12-10 06:00:31.655 6F,6E,20,44,61,74,61,00,00,00,0F,00,00,00,00,00,00,00,00,FF,FF,FF,FF,00,00,
< 2008-12-10 06:00:31.655 02,01,00,00,41,C0,49,3F,0D,47,49,3F,02,A6,00,00,00,07,43,6F,6F,6B,69,65,73,
< 2008-12-10 06:00:31.655 00,00,00,3F,64,72,77,78,2D,2D,2D,2D,2D,2D,20,20,20,20,32,20,3F,3F,3F,3F,3F,
< 2008-12-10 06:00:31.655 3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,20,20,30,20,44,65,63,
< 2008-12-10 06:00:31.655 20,20,38,20,30,35,3A,31,31,20,43,6F,6F,6B,69,65,73,00,00,00,0F,00,00,00,00,
< 2008-12-10 06:00:31.655 00,00,00,00,FF,FF,FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,47,49,3C,5F,1C,00,
< 2008-12-10 06:00:31.655 00,00,07,44,65,73,6B,74,6F,70,00,00,00,3F,64,72,77,78,2D,2D,2D,2D,2D,2D,20,
< 2008-12-10 06:00:31.655 20,20,20,32,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,
< 2008-12-10 06:00:31.655 20,20,34,30,39,36,20,44,65,63,20,31,30,20,30,36,3A,30,30,20,44,65,73,6B,74,
< 2008-12-10 06:00:31.655 6F,70,00,00,00,0F,00,00,00,00,00,00,10,00,FF,FF,FF,FF,00,00,02,01,00,00,41,
< 2008-12-10 06:00:31.655 C0,49,3F,0D,A6,49,3F,0D,99,00,00,00,09,46,61,76,6F,72,69,74,65,73,00,00,00,
< 2008-12-10 06:00:31.655 41,64,72,2D,78,2D,2D,2D,2D,2D,2D,20,20,20,20,34,20,3F,3F,3F,3F,3F,3F,3F,3F,
< 2008-12-10 06:00:31.655 20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,20,39,
< 2008-12-10 06:00:31.655 20,30,34,3A,33,30,20,46,61,76,6F,72,69,74,65,73,00,00,00,0F,00,00,00,00,00,
< 2008-12-10 06:00:31.655 00,10,00,FF,FF,FF,FF,00,00,02,01,00,00,41,40,49,3F,0D,47,49,3D,A7,07,00,00,
< 2008-12-10 06:00:31.655 00,0E,4C,6F,63,61,6C,20,53,65,74,74,69,6E,67,73,00,00,00,46,64,72,77,78,2D,
< 2008-12-10 06:00:31.655 2D,2D,2D,2D,2D,20,20,20,20,36,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,20,38,20,31,30,3A,32,34,
< 2008-12-10 06:00:31.655 20,4C,6F,63,61,6C,20,53,65,74,74,69,6E,67,73,00,00,00,0F,00,00,00,00,00,00,
< 2008-12-10 06:00:31.655 10,00,FF,FF,FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,77,49,3C,A8,6A,00,00,00,
< 2008-12-10 06:00:31.655 0C,4D,79,20,44,6F,63,75,6D,65,6E,74,73,00,00,00,44,64,72,77,78,2D,2D,2D,2D,
< 2008-12-10 06:00:31.655 2D,2D,20,20,20,20,33,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,20,20,30,20,44,65,63,20,20,38,20,31,30,3A,32,34,20,4D,79,
< 2008-12-10 06:00:31.655 20,44,6F,63,75,6D,65,6E,74,73,00,00,00,0F,00,00,00,00,00,00,00,00,FF,FF,FF,
< 2008-12-10 06:00:31.655 FF,00,00,02,01,00,00,41,C0,49,3F,0D,5E,49,3C,A8,6A,00,00,00,07,4E,65,74,48,
< 2008-12-10 06:00:31.655 6F,6F,64,00,00,00,3F,64,72,77,78,2D,2D,2D,2D,2D,2D,20,20,20,20,32,20,3F,3F,
< 2008-12-10 06:00:31.655 3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,20,20,30,20,
< 2008-12-10 06:00:31.655 44,65,63,20,20,38,20,31,30,3A,32,34,20,4E,65,74,48,6F,6F,64,00,00,00,0F,00,
< 2008-12-10 06:00:31.655 00,00,00,00,00,00,00,FF,FF,FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,47,49,3C,
< 2008-12-10 06:00:31.655 A8,6A,00,00,00,0A,4E,54,55,53,45,52,2E,44,41,54,00,00,00,42,2D,72,77,78,2D,
< 2008-12-10 06:00:31.655 2D,2D,2D,2D,2D,20,20,20,20,31,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,32,32,31,31,38,34,20,44,65,63,20,31,30,20,30,36,3A,30,30,
< 2008-12-10 06:00:31.655 20,4E,54,55,53,45,52,2E,44,41,54,00,00,00,0F,00,00,00,00,00,03,60,00,FF,FF,
< 2008-12-10 06:00:31.655 FF,FF,00,00,02,01,00,00,81,C0,49,3F,0D,9E,49,3F,0D,9E,00,00,00,0E,6E,74,75,
< 2008-12-10 06:00:31.655 73,65,72,2E,64,61,74,2E,4C,4F,47,00,00,00,46,2D,72,77,78,72,77,78,2D,2D,2D,
< 2008-12-10 06:00:31.655 20,20,20,20,31,20,3F,3F,3F,3F,3F,3F,3F,3F,20,53,59,53,54,45,4D,20,20,20,20,
< 2008-12-10 06:00:31.655 20,20,20,31,30,32,34,20,44,65,63,20,31,30,20,30,36,3A,30,30,20,6E,74,75,73,
< 2008-12-10 06:00:31.655 65,72,2E,64,61,74,2E,4C,4F,47,00,00,00,0F,00,00,00,00,00,00,04,00,FF,FF,FF,
< 2008-12-10 06:00:31.655 FF,00,00,00,12,00,00,81,F8,49,3F,0D,9E,49,3F,0D,9E,00,00,00,0A,6E,74,75,73,
< 2008-12-10 06:00:31.655 65,72,2E,69,6E,69,00,00,00,42,2D,72,77,78,72,77,78,2D,2D,2D,20,20,20,20,31,
< 2008-12-10 06:00:31.655 20,3F,3F,3F,3F,3F,3F,3F,3F,20,53,59,53,54,45,4D,20,20,20,20,20,20,20,20,20,
< 2008-12-10 06:00:31.655 32,30,20,44,65,63,20,20,39,20,30,34,3A,33,30,20,6E,74,75,73,65,72,2E,69,6E,
< 2008-12-10 06:00:31.655 69,00,00,00,0F,00,00,00,00,00,00,00,14,FF,FF,FF,FF,00,00,00,12,00,00,81,F8,
< 2008-12-10 06:00:31.655 49,3F,0D,A7,49,3D,A7,03,00,00,00,09,50,72,69,6E,74,48,6F,6F,64,00,00,00,41,
< 2008-12-10 06:00:31.655 64,72,77,78,2D,2D,2D,2D,2D,2D,20,20,20,20,32,20,3F,3F,3F,3F,3F,3F,3F,3F,20,
< 2008-12-10 06:00:31.655 4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,20,20,30,20,44,65,63,20,20,38,20,
< 2008-12-10 06:00:31.655 31,30,3A,32,34,20,50,72,69,6E,74,48,6F,6F,64,00,00,00,0F,00,00,00,00,00,00,
< 2008-12-10 06:00:31.655 00,00,FF,FF,FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,47,49,3C,A8,6A,00,00,00,
< 2008-12-10 06:00:31.655 06,52,65,63,65,6E,74,00,00,00,3E,64,72,2D,78,2D,2D,2D,2D,2D,2D,20,20,20,20,
< 2008-12-10 06:00:31.655 32,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,
< 2008-12-10 06:00:31.655 20,20,30,20,44,65,63,20,31,30,20,30,35,3A,35,39,20,52,65,63,65,6E,74,00,00,
< 2008-12-10 06:00:31.655 00,0F,00,00,00,00,00,00,00,00,FF,FF,FF,FF,00,00,02,01,00,00,41,40,49,3F,0D,
< 2008-12-10 06:00:31.655 77,49,3F,0D,77,00,00,00,06,53,65,6E,64,54,6F,00,00,00,3E,64,72,77,78,2D,2D,
< 2008-12-10 06:00:31.655 2D,2D,2D,2D,20,20,20,20,32,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,31,30,20,30,35,3A,31,33,20,
< 2008-12-10 06:00:31.655 53,65,6E,64,54,6F,00,00,00,0F,00,00,00,00,00,00,10,00,FF,FF,FF,FF,00,00,02,
< 2008-12-10 06:00:31.655 01,00,00,41,C0,49,3F,0D,47,49,3F,02,A5,00,00,00,0A,53,74,61,72,74,20,4D,65,
< 2008-12-10 06:00:31.655 6E,75,00,00,00,42,64,72,77,78,2D,2D,2D,2D,2D,2D,20,20,20,20,33,20,3F,3F,3F,
< 2008-12-10 06:00:31.655 3F,3F,3F,3F,3F,20,4E,6F,6E,65,20,20,20,20,20,20,20,20,20,20,20,20,30,20,44,
< 2008-12-10 06:00:31.655 65,63,20,20,38,20,31,30,3A,32,34,20,53,74,61,72,74,20,4D,65,6E,75,00,00,00,
< 2008-12-10 06:00:31.655 0F,00,00,00,00,00,00,00,00,FF,FF,FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,47,
< 2008-12-10 06:00:31.655 49,3C,A8,6A,00,00,00,09,54,65,6D,70,6C,61,74,65,73,00,00,00,41,64,72,77,78,
< 2008-12-10 06:00:31.655 2D,2D,2D,2D,2D,2D,20,20,20,20,32,20,3F,3F,3F,3F,3F,3F,3F,3F,20,4E,6F,6E,65,
< 2008-12-10 06:00:31.655 20,20,20,20,20,20,20,20,20,34,30,39,36,20,44,65,63,20,20,38,20,30,35,3A,30,
< 2008-12-10 06:00:31.655 33,20,54,65,6D,70,6C,61,74,65,73,00,00,00,0F,00,00,00,00,00,00,10,00,FF,FF,
< 2008-12-10 06:00:31.655 FF,FF,00,00,02,01,00,00,41,C0,49,3F,0D,47,49,3C,5D,62,
> 2008-12-10 06:00:31.655 Type: SSH_FXP_READDIR, Size: 13, Number: 780
> 2008-12-10 06:00:31.655 0C,00,00,03,0C,00,00,00,04,00,00,00,00,
. 2008-12-10 06:00:31.655 Sent 17 bytes
. 2008-12-10 06:00:31.655 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.655 Looking for network events
. 2008-12-10 06:00:31.655 Timeout waiting for network events
. 2008-12-10 06:00:31.655 Read file '.' from listing
. 2008-12-10 06:00:31.655 Read file '..' from listing
. 2008-12-10 06:00:31.655 Read file '.ssh' from listing
. 2008-12-10 06:00:31.655 Read file 'Application Data' from listing
. 2008-12-10 06:00:31.655 Read file 'Cookies' from listing
. 2008-12-10 06:00:31.655 Read file 'Desktop' from listing
. 2008-12-10 06:00:31.655 Read file 'Favorites' from listing
. 2008-12-10 06:00:31.655 Read file 'Local Settings' from listing
. 2008-12-10 06:00:31.655 Read file 'My Documents' from listing
. 2008-12-10 06:00:31.655 Read file 'NetHood' from listing
. 2008-12-10 06:00:31.655 Read file 'NTUSER.DAT' from listing
. 2008-12-10 06:00:31.655 Read file 'ntuser.dat.LOG' from listing
. 2008-12-10 06:00:31.655 Read file 'ntuser.ini' from listing
. 2008-12-10 06:00:31.655 Read file 'PrintHood' from listing
. 2008-12-10 06:00:31.655 Read file 'Recent' from listing
. 2008-12-10 06:00:31.655 Read file 'SendTo' from listing
. 2008-12-10 06:00:31.655 Read file 'Start Menu' from listing
. 2008-12-10 06:00:31.655 Read file 'Templates' from listing
. 2008-12-10 06:00:31.655 Waiting for another 4 bytes
. 2008-12-10 06:00:31.655 Looking for incoming data
. 2008-12-10 06:00:31.655 Looking for network events
. 2008-12-10 06:00:31.671 Detected network event
. 2008-12-10 06:00:31.671 Enumerating network events for socket 488
. 2008-12-10 06:00:31.671 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:31.671 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:31.671 Received 32 bytes (0)
. 2008-12-10 06:00:31.671 Read 4 bytes (28 pending)
. 2008-12-10 06:00:31.671 Read 28 bytes (0 pending)
< 2008-12-10 06:00:31.671 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2008-12-10 06:00:31.671 65,00,00,03,0C,00,00,00,01,00,00,00,0B,45,6E,64,20,6F,66,20,66,69,6C,65,00,
< 2008-12-10 06:00:31.671 00,00,00,
< 2008-12-10 06:00:31.671 Status/error code: 1
> 2008-12-10 06:00:31.671 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
> 2008-12-10 06:00:31.671 04,00,00,04,04,00,00,00,04,00,00,00,00,
. 2008-12-10 06:00:31.671 Sent 17 bytes
. 2008-12-10 06:00:31.671 There are 0 bytes remaining in the send buffer
. 2008-12-10 06:00:31.671 Looking for network events
. 2008-12-10 06:00:31.671 Timeout waiting for network events
. 2008-12-10 06:00:31.671 Startup conversation with host finished.
. 2008-12-10 06:00:32.249 Session upkeep
. 2008-12-10 06:00:32.249 Looking for network events
. 2008-12-10 06:00:32.249 Detected network event
. 2008-12-10 06:00:32.249 Enumerating network events for socket 488
. 2008-12-10 06:00:32.249 Enumerated 1 network events making 1 cumulative events for socket 488
. 2008-12-10 06:00:32.249 Handling network read event on socket 488 with error 0
. 2008-12-10 06:00:32.249 Received 28 bytes (0)
. 2008-12-10 06:00:32.749 Session upkeep
. 2008-12-10 06:00:32.749 Looking for network events
. 2008-12-10 06:00:32.749 Timeout waiting for network events
. 2008-12-10 06:00:33.249 Session upkeep
. 2008-12-10 06:00:33.249 Looking for network events
. 2008-12-10 06:00:33.249 Timeout waiting for network events
. 2008-12-10 06:00:33.749 Session upkeep
. 2008-12-10 06:00:33.749 Looking for network events
. 2008-12-10 06:00:33.749 Timeout waiting for network events
. 2008-12-10 06:00:34.249 Session upkeep
. 2008-12-10 06:00:34.249 Looking for network events
. 2008-12-10 06:00:34.249 Timeout waiting for network events

Reply with quote E-mail

Advertisement

Guest

Yes, I am able to login with the password but the problem arises when I use the public and private key. It refuses the key and accepts the password.

Reply with quote

TS
Joined:
Posts:
8

You said you used PuTTYgen. Did you convert the key from PuTTY format to OpenSSH format before copying it into .ssh?

What do the auth logs on the server say?

Reply with quote

Advertisement

dashah76
Joined:
Posts:
9
Location:
india

TS wrote:

What do the auth logs on the server say?
waiting for the server to continue with the initialisation
Detected network event
Host key fingerprint is:
ssh-rsa 1024 25:4d:cf:46:1d:91:71:ff:a9:4a:f9:ed:28:f8:c4:62
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Waiting for the server to continue with the initialisation
Detected network event
Reading private key file "C:\Documents and Settings\ssh\Desktop\id_rsa.ppk"
Using username "ssh".
Waiting for the server to continue with the initialisation
Detected network event
Offered public key
Waiting for the server to continue with the initialisation
Detected network event
Server refused our key
Server refused public key
Waiting for the server to continue with the initialisation
Keyboard-interactive authentication refused
Prompt (6, SSH password, , &Password: )
Sent password
Waiting for the server to continue with the initialisation
Detected network event
Access granted

Reply with quote E-mail

TS2
Guest

dashah76 wrote:

...
Offered public key
...
Server refused our key
Server refused public key
What you provided are the client logs. The question is why the server is refusing your key. To understand that, it would be helpful to have the server logs. You would have to look at /var/log/auth.log on the server (or something like that... it depends on where the server is configured to log that data).

Reply with quote

dashah76
Joined:
Posts:
9
Location:
india

server refuse our key

How to work with the auth.log as no auth.log file is created. How to resolve this issue? My sshd_config file is as below. Kindly help.
#   $OpenBSD: sshd_config,v 1.65 2003/08/28 12:54:34 markus Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

Port 22
#Protocol 2,1
Protocol 2
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
 HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
#obsoletes QuietMode and FascistLogging
SyslogFacility AUTH
LogLevel INFO

# Authentication:

LoginGraceTime 2m
PermitRootLogin yes

# The following setting overrides permission checks on host key files
# and directories. For security reasons set this to "yes" when running
# NT/W2K, NTFS and CYGWIN=ntsec.
StrictModes yes

RSAAuthentication no
PubkeyAuthentication yes
AuthorizedKeysFile   .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts yes
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCreds yes

# Set this to 'yes' to enable PAM authentication (via challenge-response)
# and session processing. Depending on your PAM configuration, this may
# bypass the setting of 'PasswordAuthentication'
#UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#KeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
MaxStartups 10:30:60

# default banner path
Banner /etc/banner.txt

# override default of no subsystems
Subsystem   sftp   /usr/sbin/sftp-server

Reply with quote E-mail

dashah76
Joined:
Posts:
9
Location:
india

server refused our key

Hi
when I install OpenSSH 3.8 on Windows XP, it works with the public key authentication without any error, but when I install on Windows 2003, it gives an error below in the log.
Authenticating with public key "rsa-key-20110930"
Waiting for the server to continue with the initialisation
Detected network event
Access granted
Waiting for the server to continue with the initialisation
Detected network event
Opened channel for session
Waiting for the server to continue with the initialisation
Detected network event
Started a shell/command
Server sent command exit status 255
Last edited by dashah76 on 2011-09-30 20:55; edited 1 time in total

Reply with quote E-mail

Advertisement

suresh policharla
Guest

I also have the same issue

Error:
Server refused our key
Server refused public key
Same code is working from server, but not from client.
If I pass the password, then it is working from client also.
It is not working when I use private key.

Reply with quote

Levor
Guest

update to sshd_config

I got the same error message, perhaps due to another reason. Here is the solution I found:

For WinSCP <= 5.19.x:
On the server (Linux) side you'll need to add this line to /etc/ssh/sshd_config:
PubkeyAcceptedAlgorithms +ssh-rsa
This is supposed to be fixed in WinSCP 5.20.
See the official WinSCP post at:
Issue 1952 – Support rsa-sha2-256 and rsa-sha2-512 SSH public key algorithms

Note: I'm running an ArchLinux server, but this should be the same for Fedora or Debian based systems.

Reply with quote

Advertisement

You can post new topics in this forum