· 8 years ago · Jan 12, 2017, 01:48 AM
1$ ssh -v -i ~/.ssh/id_rsa root@192.168.1.1
2OpenSSH_7.4p1, OpenSSL 1.0.2j 26 Sep 2016
3debug1: Reading configuration data /etc/ssh/ssh_config
4debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
5debug1: Connection established.
6debug1: identity file /home/chazy/.ssh/id_rsa type 1
7debug1: key_load_public: No such file or directory
8debug1: identity file /home/chazy/.ssh/id_rsa-cert type -1
9debug1: Enabling compatibility mode for protocol 2.0
10debug1: Local version string SSH-2.0-OpenSSH_7.4
11debug1: Remote protocol version 2.0, remote software version dropbear
12debug1: no match: dropbear
13debug1: Authenticating to 192.168.1.1:22 as 'root'
14debug1: SSH2_MSG_KEXINIT sent
15debug1: SSH2_MSG_KEXINIT received
16debug1: kex: algorithm: curve25519-sha256@libssh.org
17debug1: kex: host key algorithm: ssh-rsa
18debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
19debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
20debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
21debug1: Server host key: ssh-rsa SHA256:1EFA75uwLp+4hBW0t3aaY05QjLzYd4jjDWoULAzF/8o
22debug1: Host '192.168.1.1' is known and matches the RSA host key.
23debug1: Found key in /home/chazy/.ssh/known_hosts:1
24debug1: rekey after 4294967296 blocks
25debug1: SSH2_MSG_NEWKEYS sent
26debug1: expecting SSH2_MSG_NEWKEYS
27debug1: SSH2_MSG_NEWKEYS received
28debug1: rekey after 4294967296 blocks
29debug1: SSH2_MSG_SERVICE_ACCEPT received
30debug1: Authentications that can continue: publickey
31debug1: Next authentication method: publickey
32debug1: Offering RSA public key: /home/chazy/.ssh/id_rsa
33debug1: Authentications that can continue: publickey
34debug1: No more authentication methods to try.
35Permission denied (publickey).
36
37# /opt/bin/ssh -V
38Dropbear v2016.74
39
40mount -o bind $DIR/opt /opt
41
42$DROPBEAR -p $PORT -P $PIDFILE -r $RSAKEY -g -s