Hi John,

It is very strange ... ssh connection established correctly (*1*),
authentication done too (*2*), the command, you send, accepted (*3*) ...

2016-03-04 14:18 GMT+01:00 John Lewis <[email protected]>:

> Hi Olivér,
> Thanks for the "vv" idea!
>
> Using -vvv (tiple v) bring me this (the last line is hang, need ^C to
> bring the prompt back)
>
> Not sure what is that on line 10: "debug3: Could not load
> "/root/.ssh/id_rsa_dirvish_client1" as a RSA1 public key"
>
^^^ there is no problem, because this is not a public key

>
>
> root@server:/backup/dirvish/client1# ssh -vvv -p 11111 -i
> /root/.ssh/id_rsa_dirvish_client1 client1 "/etc/dirvish_mysql_dump.sh"
> OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: /etc/ssh/ssh_config line 19: Applying options for *
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to client1 [111.111.111.111] port 11111.
> debug1: Connection established.
> debug1: permanently_set_uid: 0/0
> debug3: Incorrect RSA1 identifier
> debug3: Could not load "/root/.ssh/id_rsa_dirvish_client1" as a RSA1
> public key
> debug1: identity file /root/.ssh/id_rsa_dirvish_client1 type 1
> debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
> debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
> debug1: identity file /root/.ssh/id_rsa_dirvish_client1-cert type -1
> debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1
> Debian-4+deb7u2
> debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
> debug2: fd 3 setting O_NONBLOCK
> debug3: put_host_port: [client1]:11111
> debug3: load_hostkeys: loading entries for host "[client1]:11111" from
> file "/root/.ssh/known_hosts"
> debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:25
> debug3: load_hostkeys: loaded 1 keys
> debug3: order_hostkeyalgs: prefer hostkeyalgs:
> [email protected],[email protected],ssh-rsa
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug2: kex_parse_kexinit:
> ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
> debug2: kex_parse_kexinit: [email protected],
> [email protected],ssh-rsa,
> [email protected],
> [email protected],
> [email protected],[email protected],
> [email protected]
> ,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
> debug2: kex_parse_kexinit:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
> [email protected]
> debug2: kex_parse_kexinit:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
> [email protected]
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected]
> ,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,
> [email protected],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected]
> ,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,
> [email protected],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,[email protected],zlib
> debug2: kex_parse_kexinit: none,[email protected],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:
> ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
> debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
> debug2: kex_parse_kexinit:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
> [email protected]
> debug2: kex_parse_kexinit:
> aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
> [email protected]
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected]
> ,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,
> [email protected],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected]
> ,hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,
> [email protected],hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,[email protected]
> debug2: kex_parse_kexinit: none,[email protected]
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit: first_kex_follows 0
> debug2: kex_parse_kexinit: reserved 0
> debug2: mac_setup: found hmac-md5
> debug1: kex: server->client aes128-ctr hmac-md5 none
> debug2: mac_setup: found hmac-md5
> debug1: kex: client->server aes128-ctr hmac-md5 none
> debug1: sending SSH2_MSG_KEX_ECDH_INIT
> debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
> debug1: Server host key: RSA
> 31:cf:50:13:02:ea:27:0f:7a:7a:9d:82:32:e1:ab:ef
> debug3: put_host_port: [111.111.111.111]:11111
> debug3: put_host_port: [client1]:11111
> debug3: load_hostkeys: loading entries for host "[client1]:11111" from
> file "/root/.ssh/known_hosts"
> debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:25
> debug3: load_hostkeys: loaded 1 keys
> debug3: load_hostkeys: loading entries for host "[111.111.111.111]:11111"
> from file "/root/.ssh/known_hosts"
> debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:26
> debug3: load_hostkeys: loaded 1 keys
> debug1: Host '[client1]:11111' is known and matches the RSA host key.
> debug1: Found key in /root/.ssh/known_hosts:25
> debug1: ssh_rsa_verify: signature correct
>
(*1*)

> 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: Roaming not allowed by server
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug2: service_accept: ssh-userauth
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug2: key: /root/.ssh/id_rsa_dirvish_client1 (0x7fc9683ce1c0)
> debug1: Authentications that can continue: publickey,password
> debug3: start over, passed a different list publickey,password
> debug3: preferred
> gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
> debug3: authmethod_lookup publickey
> debug3: remaining preferred: keyboard-interactive,password
> debug3: authmethod_is_enabled publickey
> debug1: Next authentication method: publickey
> debug1: Offering RSA public key: /root/.ssh/id_rsa_dirvish_client1
> debug3: send_pubkey_test
> debug2: we sent a publickey packet, wait for reply
> debug1: Server accepts key: pkalg ssh-rsa blen 279
> debug2: input_userauth_pk_ok: fp
> b1:69:5c:50:88:6a:11:bd:25:36:09:c1:a1:8b:82:e7
> debug3: sign_and_send_pubkey: RSA
> b1:69:5c:50:88:6a:11:bd:25:36:09:c1:a1:8b:82:e7
> debug1: read PEM private key done: type RSA
> debug1: Authentication succeeded (publickey).
> Authenticated to client1 ([111.111.111.111]:11111).
>
(*2*)

> debug1: channel 0: new [client-session]
> debug3: ssh_session2_open: channel_new: 0
> debug2: channel 0: send open
> debug1: Requesting [email protected]
> debug1: Entering interactive session.
> debug1: Remote: Forced command.
> debug1: Remote: Port forwarding disabled.
> debug1: Remote: X11 forwarding disabled.
> debug1: Remote: Agent forwarding disabled.
> debug1: Remote: Forced command.
> debug1: Remote: Port forwarding disabled.
> debug1: Remote: X11 forwarding disabled.
> debug1: Remote: Agent forwarding disabled.
> debug2: callback start
> debug2: client_session2_setup: id 0
> debug2: fd 3 setting TCP_NODELAY
> debug3: packet_set_tos: set IP_TOS 0x08
> debug1: Sending environment.
> debug3: Ignored env SHELL
> debug3: Ignored env TERM
> debug3: Ignored env SSH_CLIENT
> debug3: Ignored env SSH_TTY
> debug3: Ignored env USER
> debug3: Ignored env LS_COLORS
> debug3: Ignored env PATH
> debug3: Ignored env MAIL
> debug3: Ignored env PWD
> debug1: Sending env LANG = en_US
> debug2: channel 0: request env confirm 0
> debug3: Ignored env HOME
> debug3: Ignored env SHLVL
> debug3: Ignored env LOGNAME
> debug3: Ignored env SSH_CONNECTION
> debug3: Ignored env OLDPWD
> debug3: Ignored env _
> debug1: Sending command: /etc/dirvish_mysql_dump.sh
> debug2: channel 0: request exec confirm 1
> debug2: callback done
> debug2: channel 0: open confirm rwindow 0 rmax 32768
> debug2: channel 0: rcvd adjust 2097152
> debug2: channel_input_status_confirm: type 99 id 0
> debug2: exec request accepted on channel 0
> (*3*)
>

Try to run a bare system code, like "ls" ... does that work?
(a little example from my console ... a little diff, my client's original
user is not root ...)
************
ssh -vvv -i /home/oliver/.ssh/id_rsa -p 22 -l root 192.168.1.207 /bin/ls
-la /root/.
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
.
.
.
debug1: Sending command: /bin/ls -la /root/.
debug2: channel 0: request exec confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
összesen 64
drwx------  8 root root 4096 jan   21 10:10 .
drwxr-xr-x 22 root root 4096 febr  17 06:09 ..
-rw-------  1 root root 8789 márc   2 00:07 .bash_history
-rw-r--r--  1 root root  570 jan   31  2010 .bashrc
.
.
.

************

> Thanks!
>
> On Fri, Mar 4, 2016 at 8:03 PM, H Oli <[email protected]> wrote:
>
>> Hi John,
>>
>> Try ssh with -vv, to see where rhe problrm is... it's commonly keyauth
>> problem, but verbose mode tells you more:)
>>
>> --
>> Olivér
>>
>
>
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish
>
>
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to