· 8 years ago · Mar 17, 2017, 06:28 PM
1IPSec gateway www.example.com
2IPSec ID test
3IPSec secret test
4Xauth username foo
5Xauth password bar
6
7root@debJessie01:/etc/vpnc# vpnc example.conf
8VPNC started in background (pid: 14921)...
9root@debJessie01:/etc/vpnc# ssh -vvvv root@192.168.1.1
10OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016
11debug1: Reading configuration data /etc/ssh/ssh_config
12debug1: /etc/ssh/ssh_config line 19: Applying options for *
13debug2: ssh_connect: needpriv 0
14debug1: Connecting to 192.168.1.1 [192.168.1.1] port 22.
15debug1: Connection established.
16debug1: permanently_set_uid: 0/0
17debug1: identity file /root/.ssh/id_rsa type 1
18debug1: key_load_public: No such file or directory
19debug1: identity file /root/.ssh/id_rsa-cert type -1
20debug1: key_load_public: No such file or directory
21debug1: identity file /root/.ssh/id_dsa type -1
22debug1: key_load_public: No such file or directory
23debug1: identity file /root/.ssh/id_dsa-cert type -1
24debug1: key_load_public: No such file or directory
25debug1: identity file /root/.ssh/id_ecdsa type -1
26debug1: key_load_public: No such file or directory
27debug1: identity file /root/.ssh/id_ecdsa-cert type -1
28debug1: key_load_public: No such file or directory
29debug1: identity file /root/.ssh/id_ed25519 type -1
30debug1: key_load_public: No such file or directory
31debug1: identity file /root/.ssh/id_ed25519-cert type -1
32debug1: Enabling compatibility mode for protocol 2.0
33debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u3
34debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
35debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
36debug2: fd 3 setting O_NONBLOCK
37debug3: load_hostkeys: loading entries for host "192.168.1.1" from file "/root/.ssh/known_hosts"
38debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:3
39debug3: load_hostkeys: loaded 1 keys
40debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
41debug1: SSH2_MSG_KEXINIT sent
42debug1: SSH2_MSG_KEXINIT received
43debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
44debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss
45debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
46debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
47debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
48debug2: kex_parse_kexinit: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1,hmac-md5-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
49debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
50debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
51debug2: kex_parse_kexinit:
52debug2: kex_parse_kexinit:
53debug2: kex_parse_kexinit: first_kex_follows 0
54debug2: kex_parse_kexinit: reserved 0
55debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
56debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
57debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
58debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
59debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
60debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
61debug2: kex_parse_kexinit: none,zlib@openssh.com
62debug2: kex_parse_kexinit: none,zlib@openssh.com
63debug2: kex_parse_kexinit:
64debug2: kex_parse_kexinit:
65debug2: kex_parse_kexinit: first_kex_follows 0
66debug2: kex_parse_kexinit: reserved 0
67debug2: mac_setup: setup umac-64@openssh.com
68debug1: kex: server->client aes128-ctr umac-64@openssh.com none
69debug2: mac_setup: setup umac-64@openssh.com
70debug1: kex: client->server aes128-ctr umac-64@openssh.com none
71debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
72debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
73debug2: bits set: 1531/3072
74debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
75debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
76debug1: Server host key: RSA 29:f5:f9:04:e8:15:33:be:16:9c:ab:38:44:bf:79:df
77debug3: load_hostkeys: loading entries for host "192.168.1.1" from file "/root/.ssh/known_hosts"
78debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:3
79debug3: load_hostkeys: loaded 1 keys
80debug1: Host '192.168.1.1' is known and matches the RSA host key.
81debug1: Found key in /root/.ssh/known_hosts:3
82debug2: bits set: 1553/3072
83debug2: kex_derive_keys
84debug2: set_newkeys: mode 1
85debug1: SSH2_MSG_NEWKEYS sent
86debug1: expecting SSH2_MSG_NEWKEYS
87debug2: set_newkeys: mode 0
88debug1: SSH2_MSG_NEWKEYS received
89debug1: SSH2_MSG_SERVICE_REQUEST sent
90debug2: service_accept: ssh-userauth
91debug1: SSH2_MSG_SERVICE_ACCEPT received
92debug2: key: /root/.ssh/id_rsa (0x7f61450839f0),
93debug2: key: /root/.ssh/id_dsa ((nil)),
94debug2: key: /root/.ssh/id_ecdsa ((nil)),
95debug2: key: /root/.ssh/id_ed25519 ((nil)),
96debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
97debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
98debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
99debug3: authmethod_lookup gssapi-keyex
100debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password
101debug3: authmethod_is_enabled gssapi-keyex
102debug1: Next authentication method: gssapi-keyex
103debug1: No valid Key exchange context
104debug2: we did not send a packet, disable method
105debug3: authmethod_lookup gssapi-with-mic
106debug3: remaining preferred: publickey,keyboard-interactive,password
107debug3: authmethod_is_enabled gssapi-with-mic
108debug1: Next authentication method: gssapi-with-mic
109debug1: Unspecified GSS failure. Minor code may provide more information
110No Kerberos credentials available
111
112debug1: Unspecified GSS failure. Minor code may provide more information
113No Kerberos credentials available
114
115debug1: Unspecified GSS failure. Minor code may provide more information
116
117
118debug1: Unspecified GSS failure. Minor code may provide more information
119No Kerberos credentials available
120
121debug2: we did not send a packet, disable method
122debug3: authmethod_lookup publickey
123debug3: remaining preferred: keyboard-interactive,password
124debug3: authmethod_is_enabled publickey
125debug1: Next authentication method: publickey
126debug1: Offering RSA public key: /root/.ssh/id_rsa
127debug3: send_pubkey_test
128debug2: we sent a publickey packet, wait for reply
129debug1: Server accepts key: pkalg ssh-rsa blen 279
130debug2: input_userauth_pk_ok: fp 2b:cd:74:d5:0e:ed:09:54:e4:ed:41:7b:23:7a:6e:3e
131debug3: sign_and_send_pubkey: RSA 2b:cd:74:d5:0e:ed:09:54:e4:ed:41:7b:23:7a:6e:3e
132debug1: Authentication succeeded (publickey).
133Authenticated to 192.168.1.1 ([192.168.1.1]:22).
134debug1: channel 0: new [client-session]
135debug3: ssh_session2_open: channel_new: 0
136debug2: channel 0: send open
137debug1: Requesting no-more-sessions@openssh.com
138debug1: Entering interactive session.
139debug2: callback start
140debug2: fd 3 setting TCP_NODELAY
141debug3: packet_set_tos: set IP_TOS 0x10
142debug2: client_session2_setup: id 0
143debug2: channel 0: request pty-req confirm 1
144debug1: Sending environment.
145debug3: Ignored env XDG_SESSION_ID
146debug3: Ignored env SHELL
147debug3: Ignored env TERM
148debug3: Ignored env DERBY_HOME
149debug3: Ignored env USER
150debug3: Ignored env MAIL
151debug3: Ignored env PATH
152debug3: Ignored env PWD
153debug3: Ignored env JAVA_HOME
154debug1: Sending env LANG = en_US.UTF-8
155debug2: channel 0: request env confirm 0
156debug3: Ignored env SHLVL
157debug3: Ignored env HOME
158debug3: Ignored env LOGNAME
159debug3: Ignored env J2SDKDIR
160debug3: Ignored env J2REDIR
161debug3: Ignored env _
162debug3: Ignored env OLDPWD
163debug2: channel 0: request shell confirm 1
164debug2: callback done
165debug2: channel 0: open confirm rwindow 0 rmax 32768
166debug2: channel_input_status_confirm: type 99 id 0
167debug2: PTY allocation request accepted on channel 0
168debug2: channel 0: rcvd adjust 2097152
169debug2: channel_input_status_confirm: type 99 id 0
170debug2: shell request accepted on channel 0
171[root@exmaple.com ~]#