QQ号+00c5www.001991.comtrc 的...

IP00C786  
北京显易科技小毕
QQ:,北京显易科技有限公司==
热门型号:
&&&当前位置:
& IP00C786  
北京显易科技小毕
IP00C786  
北京显易科技小毕
联系人:曹***/于***/ 梁先生/姜***
***:086-010-2/
传真:-010-
地址:海淀区远大路20号姜杰钢琴城文化艺术大厦E座11C2-2
相关行业资讯For?er?s = ( 1919- )HTML URL Encoding
HTML URL Encoding
URL encoding is the practice of translating unprintable characters or characters with special meaning within URLs to a representation that is unambiguous and universally accepted by web browsers and servers. These characters include:
ASCII control characters - Unprintable characters typically used for output control. Character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal). A complete encoding table is given below.
Non-ASCII control characters - These are characters beyond the ASCII character set of 128 characters. This range is part of the ISO-Latin character set and includes the entire "top half" of the ISO-Latin set 80-FF hex (128-255 decimal). A complete encoding table is given below.
Reserved characters - These are special characters such as the dollar sign, ampersand, plus, common, forward slash, colon, semi-colon, equals sign, question mark, and "at" symbol. All of these can have different meanings inside a URL so need to be encoded. A complete encoding table is given below.
Unsafe characters - These are space, quotation marks, less than symbol, greater than symbol, pound character, percent character,
Left Curly Brace, Right Curly Brace , Pipe, Backslash, Caret, Tilde,
Left Square Bracket , Right Square Bracket, Grave Accent. These character
present the possibility of being misunderstood within URLs for various reasons. These characters should also always be encoded. A complete encoding table is given below.
The encoding notation replaces the desired character with three characters: a percent sign and two hexadecimal digits that correspond to the position of the character in the ASCII character set.
One of the most common special characters is a white space. You can't type a space in a URL directly. A space position in the character set is 20 hexadecimal. So you can use %20 in place of a space when passing your request to the server.
/new%20pricing.htm
This URL actually retrieves a document named "new pricing.htm" from the
ASCII control characters encoding
This includes the encoding for character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal)
DecimalHex ValueCharacterURL Encode
808backspace%08
100alinefeed%0a
130dcarriage return%0d
Non-ASCII control characters encoding
This includes the encoding for the entire "top half" of the ISO-Latin set 80-FF hex (128-255 decimal.)
DecimalHex ValueCharacterURL Encode
12880€%80
12981%81
13082‚%82
13183ƒ%83
13284„%84
13385…%85
13486†%86
13587‡%87
13688ˆ%88
13789‰%89
1388aŠ%8a
1398b‹%8b
1408cŒ%8c
1418d%8d
1428eŽ%8e
1438f%8f
14490%90
14591‘%91
14692’%92
14793“%93
14894”%94
14995•%95
15096–%96
15197—%97
15298˜%98
15399™%99
1549aš%9a
1559b›%9b
1569cœ%9c
1579d%9d
1589ež%9e
1599fŸ%9f
160a0 %a0
161a1¡%a1
162a2¢%a2
163a3£%a3
164a4¤%a4
165a5¥%a5
166a6¦%a6
167a7§%a7
168a8¨%a8
169a9©%a9
170aaª%aa
171ab«%ab
172ac¬%ac
173ad­%ad
174ae®%ae
175af¯%af
176b0°%b0
177b1±%b1
178b2²%b2
179b3³%b3
180b4´%b4
181b5µ%b5
182b6¶%b6
183b7·%b7
184b8¸%b8
185b9¹%b9
186baº%ba
187bb»%bb
188bc¼%bc
189bd½%bd
190be¾%be
191bf¿%bf
192c0À%c0
193c1Á%c1
194c2Â%c2
195c3Ã%c3
196c4Ä%c4
197c5Å%c5
198c6Æ%v6
199c7Ç%c7
200c8È%c8
201c9É%c9
202caÊ%ca
203cbË%cb
204ccÌ%cc
205cdÍ%cd
206ceÎ%ce
207cfÏ%cf
208d0Ð%d0
209d1Ñ%d1
210d2Ò%d2
211d3Ó%d3
212d4Ô%d4
213d5Õ%d5
214d6Ö%d6
215d7×%d7
216d8Ø%d8
217d9Ù%d9
218daÚ%da
219dbÛ%db
220dcÜ%dc
221ddÝ%dd
222deÞ%de
223dfß%df
224e0à%e0
225e1á%e1
226e2â%e2
227e3ã%e3
228e4ä%e4
229e5å%e5
230e6æ%e6
231e7ç%e7
232e8è%e8
233e9é%e9
234eaê%ea
235ebë%eb
236ecì%ec
237edí%ed
238eeî%ee
239efï%ef
240f0ð%f0
241f1ñ%f1
242f2ò%f2
243f3ó%f3
244f4ô%f4
245f5õ%f5
246f6ö%f6
247f7÷%f7
248f8ø%f8
249f9ù%f9
250faú%fa
251fbû%fb
252fcü%fc
253fdý%fd
254feþ%fe
255ffÿ%ff
Reserved characters encoding
Following is the table to be used to encode reserved characters.
DecimalHex ValueCharURL Encode
Unsafe characters encoding
Following is the table to be used to encode unsafe characters.
DecimalHex ValueCharURL Encode
3220space%20
& Copyright 2016. All Rights Reserved.phpseclib sftp connect with private key and password - Stack Overflow
to customize your list.
Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
J it only takes a minute:
Is there anyway to connect the sftp with both private key and ftp password by using phpseclib or any other method.
private key loading OK!
PHP Notice:
Connection closed by server in /usr/local/Cellar/php54/5.4.11/lib/php/phpseclib/NET/SSH2.php on line 1479
:48:2d:32:2e:30:2d:31:2e:38:32:5f:73:73:68:6c
SH-2.0-1.82_sshl
:62:20:47:6c:6f:62:61:6c:53:43:41:50:45:0d:0a
ib GlobalSCAPE..
:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69:62
SH-2.0-phpseclib
f:30:2e:33:20:28:6d:63:72:79:70:74:2c:20:62:63
_0.3 (mcrypt, bc
d:61:74:68:29:0d:0a
&- NET_SSH2_MSG_KEXINIT (since last: 0.1062, network: 0.0347s)
:45:37:62:3c:17:fd:4a:7a:bd:ea:51:d8:5c:de:5c
.E7b...Jz..Q.\.\
:00:00:59:64:69:66:66:69:65:2d:68:65:6c:6c:6d
...Ydiffie-hellm
:6e:2d:67:72:6f:75:70:31:34:2d:73:68:61:31:2c
an-group14-sha1,
:69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67
diffie-hellman-g
:6f:75:70:2d:65:78:63:68:61:6e:67:65:2d:73:68
roup-exchange-sh
:31:2c:64:69:66:66:69:65:2d:68:65:6c:6c:6d:61
a1,diffie-hellma
e:2d:67:72:6f:75:70:31:2d:73:68:61:31:00:00:00
n-group1-sha1...
:73:73:68:2d:72:73:61:00:00:00:69:74:77:6f:66
.ssh-rsa...itwof
:73:68:32:35:36:2d:63:62:63:2c:74:77:6f:66:69
ish256-cbc,twofi
:68:2d:63:62:63:2c:74:77:6f:66:69:73:68:31:32
sh-cbc,twofish12
38:2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63
8-cbc,blowfish-c
62:63:2c:33:64:65:73:2d:63:62:63:2c:61:72:63:66
bc,3des-cbc,arcf
6f:75:72:2c:63:61:73:74:31:32:38:2d:63:62:63:2c
our,cast128-cbc,
61:65:73:32:35:36:2d:63:62:63:2c:61:65:73:31:32
aes256-cbc,aes12
38:2d:63:62:63:00:00:00:69:74:77:6f:66:69:73:68
8-cbc...itwofish
32:35:36:2d:63:62:63:2c:74:77:6f:66:69:73:68:2d
256-cbc,twofish-
:62:63:2c:74:77:6f:66:69:73:68:31:32:38:2d:63
cbc,twofish128-c
:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62:63:2c
bc,blowfish-cbc,
:64:65:73:2d:63:62:63:2c:61:72:63:66:6f:75:72
3des-cbc,arcfour
c:63:61:73:74:31:32:38:2d:63:62:63:2c:61:65:73
,cast128-cbc,aes
:35:36:2d:63:62:63:2c:61:65:73:31:32:38:2d:63
256-cbc,aes128-c
:63:00:00:00:2b:68:6d:61:63:2d:73:68:61:31:2c
bc...+hmac-sha1,
:6d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:73:68
hmac-md5,hmac-sh
:31:2d:39:36:2c:68:6d:61:63:2d:6d:64:35:2d:39
a1-96,hmac-md5-9
:00:00:00:2b:68:6d:61:63:2d:73:68:61:31:2c:68
6...+hmac-sha1,h
d:61:63:2d:6d:64:35:2c:68:6d:61:63:2d:73:68:61
mac-md5,hmac-sha
31:2d:39:36:2c:68:6d:61:63:2d:6d:64:35:2d:39:36
1-96,hmac-md5-96
00:00:00:09:7a:6c:69:62:2c:6e:6f:6e:65:00:00:00
....zlib,none...
09:7a:6c:69:62:2c:6e:6f:6e:65:00:00:00:00:00:00
.zlib,none......
00:00:00:00:00:00:00
-& NET_SSH2_MSG_KEXINIT (since last: 0.0003, network: 0s)
c:7d:7e:5f:e9:15:7d:58:b8:09:2e:a1:62:dc:c4:81
|}~_..}X....b...
:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c:6d
...6diffie-hellm
:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c:64
an-group1-sha1,d
:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72
iffie-hellman-gr
f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73:73
oup14-sha1....ss
:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00:00
h-rsa,ssh-dss...
:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66
varcfour256,arcf
f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c:61
our128,arcfour,a
:73:31:32:38:2d:63:62:63:2c:61:65:73:31:39:32
es128-cbc,aes192
d:63:62:63:2c:61:65:73:32:35:36:2d:63:62:63:2c
-cbc,aes256-cbc,
61:65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39
aes128-ctr,aes19
32:2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72
2-ctr,aes256-ctr
2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63
,3des-ctr,3des-c
62:63:2c:6e:6f:6e:65:00:00:00:76:61:72:63:66:6f
bc,none...varcfo
75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38
ur256,arcfour128
2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d
,arcfour,aes128-
:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c:61
cbc,aes192-cbc,a
:73:32:35:36:2d:63:62:63:2c:61:65:73:31:32:38
es256-cbc,aes128
d:63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c
-ctr,aes192-ctr,
:65:73:32:35:36:2d:63:74:72:2c:33:64:65:73:2d
aes256-ctr,3des-
:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e
ctr,3des-cbc,non
:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39
e...0hmac-sha1-9
:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63
6,hmac-sha1,hmac
d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35
-md5-96,hmac-md5
c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68
,none...0hmac-sh
:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c
a1-96,hmac-sha1,
68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63
hmac-md5-96,hmac
2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e
-md5,none....non
65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00
e....none.......
00:00:00:00:00:00
-& NET_SSH2_MSG_KEXDH_INIT (since last: 0.0061, network: 0s)
:00:00:80:6c:df:a3:79:ed:93:12:9d:12:81:6c:53
....l..y......lS
:52:30:58:6b:2c:3e:22:e5:7c:61:c6:44:e5:4f:d1
vR0Xk,&".|a.D.O.
d1:24:b8:c6:fa:44:52:04:54:e4:72:36:fc:6a:63:d3
.$...DR.T.r6.jc.
:12:11:89:77:10:55:c7:7d:5c:a7:29:60:4a:16:e6
....w.U.}\.)`J..
:cc:8e:c8:a4:35:a4:3d:4f:0c:12:37:1d:cf:82:8e
b....5.=O..7....
:2d:ba:fb:93:37:cb:7f:47:e1:38:6f:31:e8:7e:9b
!-...7..G.8o1.~.
:56:58:75:24:74:f7:1c:aa:44:4b:dd:8d:2d:0b:15
.VXu$t...DK..-..
f:2e:81:46:03:b4:3d:36:98:18:5c:a4:93:02:56:da
...F..=6..\...V.
e:0b:33:66
&- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.196, network: 0.1959s)
:00:01:15:00:00:00:07:73:73:68:2d:72:73:61:00
........ssh-rsa.
:00:01:11:00:00:01:01:00:d2:d8:42:79:bc:1f:94
...........By...
:92:7b:95:ce:0d:4e:08:40:08:6f:07:3f:80:1e:2f
..{...N.@.o.?../
e0:e1:0d:38:0b:26:62:91:92:d8:e9:54:92:1a:34:d1
...8.&b....T..4.
a:87:2a:8e:88:87:40:6e:69:41:94:fb:77:08:b8:78
J.*...@niA..w..x
d1:e8:60:f3:e0:e6:1e:78:6e:69:2b:d7:d2:96:82:e5
..`....xni+.....
:5f:f4:33:a2:de:1c:53:37:8f:f3:e6:f2:31:11:6e
&_.3...S7....1.n
:ec:53:8e:39:13:65:a0:e6:e8:91:57:8b:f9:ff:09
).S.9.e....W....
ae:a6:96:9b:85:05:b8:64:1f:15:2a:f3:2b:11:f9:d0
.......d..*.+...
f:76:dd:95:bd:34:fe:9b:9c:68:69:d7:1c:ef:d6:06
.v...4...hi.....
70:44:ea:e7:ec:b8:16:62:aa:eb:b2:2c:e9:f4:05:3c
pD.....b...,....
6b:09:64:5f:66:63:4d:57:39:f6:ef:95:2a:90:56:f7
k.d_fcMW9...*.V.
79:29:fb:67:02:80:38:cc:cd:1e:12:83:14:c2:8a:f8
y).g..8.........
75:d8:90:24:f1:dd:54:35:22:95:4d:d2:14:de:49:7e
u..$..T5".M...I~
8f:af:61:c8:ec:34:2c:ac:48:9e:38:25:27:05:fa:17
..a..4,.H.8%'...
83:1d:f2:e0:88:95:9d:4f:75:d7:84:f4:55:6a:25:bf
.......Ou...Uj%.
:da:83:6c:c5:ac:a5:f9:5d:f9:c3:af:8c:85:e3:84
...l....].......
d:b5:89:c7:1c:3b:a8:08:b1:00:00:00:80:03:25:a9
.....;........%.
:57:98:4a:15:ab:2f:83:73:0d:10:ea:6d:c0:b6:18
DW.J../.s...m...
f9:d0:81:ed:b4:e3:8e:ff:e0:30:80:63:e1:be:0a:2b
.........0.c...+
:2e:83:3a:22:d1:d5:02:40:78:ae:2c:ce:9f:4a:6d
2..:"...@x.,..Jm
bd:46:5d:c0:9f:5c:47:80:ce:df:98:ae:06:d5:09:60
.F]..\G........`
:9d:79:ea:25:a8:db:d6:8c:9b:4f:e7:a1:b0:e2:01
4.y.%.....O.....
c:8f:1a:e5:21:39:92:84:4d:0d:aa:ad:7d:87:49:c8
|...!9..M...}.I.
b6:ab:98:91:93:1d:90:9b:60:dc:3e:2a:2b:64:75:f2
........`.&*+du.
c2:3a:fb:50:0b:fd:d7:59:e9:8c:2f:c3:fc:00:00:01
.:.P...Y../.....
0f:00:00:00:07:73:73:68:2d:72:73:61:00:00:01:00
.....ssh-rsa....
01:6a:ac:e9:63:2f:87:af:ee:29:e8:c4:99:0a:08:ef
.j..c/...)......
87:9c:cf:8e:0e:11:19:a0:0b:bb:21:c7:b1:57:6d:18
..........!..Wm.
dc:70:f2:15:c7:49:43:84:b6:4f:77:cb:eb:33:57:7c
.p...IC..Ow..3W|
80:b0:8f:c7:71:a9:6a:fd:c5:12:0f:13:4d:10:bd:63
....q.j.....M..c
42:a0:80:a8:d8:be:80:81:a4:15:51:49:fd:4e:21:51
B.........QI.N!Q
:51:35:db:a5:cf:6a:33:51:71:ab:a9:be:37:c3:53
HQ5...j3Qq...7.S
c:58:4e:65:c0:7a:82:03:35:f8:16:75:c4:1d:ce:c8
.XNe.z..5..u....
:83:1b:2e:04:61:f9:50:c4:d5:74:cc:17:16:30:f9
&....a.P..t...0.
c4:b9:ad:42:15:f6:3a:e3:b7:12:f9:87:6f:41:6d:f7
...B..:.....oAm.
:bc:f2:10:df:df:d6:95:1a:d1:3e:94:6e:67:0c:b9
E.........&.ng..
e:40:04:fa:cf:b3:da:3c:af:70:fa:db:6e:64:3c:c3
^@.......p..nd..
:fa:8f:63:cd:5a:a2:79:5d:e0:24:6d:e0:7d:de:76
H..c.Z.y].$m.}.v
e:95:1c:5b:ab:e1:d6:dd:24:9e:5a:3e:60:6b:ad:db
...[....$.Z&`k..
:21:a5:76:da:be:1e:8b:a5:bf:d1:8f:81:d5:75:cb
G!.v..........u.
ff:b7:46:86:ab:84:ac:32:11:aa:80:7c:22:19:c4:06
..F....2...|"...
0f:b0:7e:dc:2e:07:f1:3f:ad:8f:2a:51:41:7c:a4:81
..~....?..*QA|..
-& NET_SSH2_MSG_NEWKEYS (since last: 0.006, network: 0s)
&- NET_SSH2_MSG_NEWKEYS (since last: 0, network: 0s)
-& NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0014, network: 0s)
:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68
....ssh-userauth
&- NET_SSH2_MSG_SERVICE_ACCEPT (since last: 0.1969, network: 0.1968s)
:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68
....ssh-userauth
-& NET_SSH2_MSG_USERAUTH_REQUEST (since last: 0.0107, network: 0.0001s)
:00:00:08:6f:63:65:6e:74:75:72:65:00:00:00:0e
....ocenture....
:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00
ssh-connection..
:09:70:75:62:6c:69:63:6b:65:79:00:00:00:00:07
..publickey.....
:73:68:2d:72:73:61:00:00:01:15:00:00:00:07:73
ssh-rsa........s
:68:2d:72:73:61:00:00:00:01:11:00:00:01:01:00
sh-rsa..........
:42:8e:4b:9c:87:cd:69:20:20:b2:3b:a2:28:b9:a3
:8e:a8:ba:ad:97:4f:8e:9a:78:ff:02:d5:c4:24:b0
......O..x....$.
fa:aa:47:b1:c6:b0:f8:d3:7f:af:bb:21:34:df:da:a6
..G........!4...
:6d:11:e2:fe:04:76:90:86:c1:29:7b:0e:21:a8:75
Qm....v...){.!.u
:83:1b:16:8f:74:9e:91:4c:65:1d:23:6e:42:09:ca
H....t..Le.#nB..
ee:c8:e0:cb:aa:93:ba:3f:85:dd:32:a0:1d:eb:b1:83
.......?..2.....
80:c1:24:47:21:da:15:bf:af:fa:e9:39:c2:b5:71:1f
..$G!......9..q.
a8:dd:5f:7a:93:30:44:87:18:7f:da:42:8e:51:06:b4
.._z.0D....B.Q..
7f:2c:b5:79:5a:5a:e1:cf:c1:4d:16:3f:b4:4a:e4:3f
.,.yZZ...M.?.J.?
94:3e:7b:4f:83:b3:95:60:70:02:04:81:d6:e6:24:ce
.&{O...`p.....$.
d0:b7:c1:c9:25:67:c4:bd:01:0d:f5:f2:18:a6:5c:79
....%g........\y
d4:c2:79:8b:9c:a8:fd:4b:71:08:df:d6:0c:ed:d8:13
..y....Kq.......
e:59:d4:a9:e1:b1:77:66:8e:17:5c:42:2f:67:24:a5
NY....wf..\B/g$.
:7a:8b:12:92:df:56:28:8e:4f:18:86:e8:6f:2e:b4
az....V(.O...o..
e:2c:64:5b:be:7d:84:5d:3c:aa:8a:e6:f0:be:f6:7e
.,d[.}.].......~
f:33:52:6c:6f:d6:35:a3:47:ec:e3:f9:75:45:49:a1
/3Rlo.5.G...uEI.
&- NET_SSH2_MSG_USERAUTH_BANNER (since last: 0.0001, network: 0s)
:00:00:23:45:46:54:20:53:65:72:76:65:72:20:36
...#EFT Server 6
e:32:2e:37:20:42:75:69:6c:64:20:30:35:2e:30:33
.2.7 Build 05.03
e:32:30:31:30:2e:33:00:00:00:02:65:6e
.2010.3....en
&- NET_SSH2_MSG_USERAUTH_PK_OK (60) (since last: 0.0348, network: 0.0346s)
:00:00:07:73:73:68:2d:72:73:61:00:00:01:15:00
....ssh-rsa.....
:00:07:73:73:68:2d:72:73:61:00:00:00:01:11:00
...ssh-rsa......
:01:01:00:98:42:8e:4b:9c:87:cd:69:20:20:b2:3b
.....B.K...i
a2:28:b9:a3:01:8e:a8:ba:ad:97:4f:8e:9a:78:ff:02
.(........O..x..
d5:c4:24:b0:fa:aa:47:b1:c6:b0:f8:d3:7f:af:bb:21
..$...G........!
:df:da:a6:51:6d:11:e2:fe:04:76:90:86:c1:29:7b
4...Qm....v...){
e:21:a8:75:48:83:1b:16:8f:74:9e:91:4c:65:1d:23
.!.uH....t..Le.#
e:42:09:ca:ee:c8:e0:cb:aa:93:ba:3f:85:dd:32:a0
nB.........?..2.
d:eb:b1:83:80:c1:24:47:21:da:15:bf:af:fa:e9:39
......$G!......9
c2:b5:71:1f:a8:dd:5f:7a:93:30:44:87:18:7f:da:42
..q..._z.0D....B
8e:51:06:b4:7f:2c:b5:79:5a:5a:e1:cf:c1:4d:16:3f
.Q...,.yZZ...M.?
b4:4a:e4:3f:94:3e:7b:4f:83:b3:95:60:70:02:04:81
.J.?.&{O...`p...
d6:e6:24:ce:d0:b7:c1:c9:25:67:c4:bd:01:0d:f5:f2
..$.....%g......
18:a6:5c:79:d4:c2:79:8b:9c:a8:fd:4b:71:08:df:d6
..\y..y....Kq...
0c:ed:d8:13:4e:59:d4:a9:e1:b1:77:66:8e:17:5c:42
....NY....wf..\B
2f:67:24:a5:61:7a:8b:12:92:df:56:28:8e:4f:18:86
/g$.az....V(.O..
e8:6f:2e:b4:8e:2c:64:5b:be:7d:84:5d:3c:aa:8a:e6
.o...,d[.}.]....
f0:be:f6:7e:2f:33:52:6c:6f:d6:35:a3:47:ec:e3:f9
...~/3Rlo.5.G...
-& NET_SSH2_MSG_USERAUTH_REQUEST (since last: 0.0675, network: 0.0001s)
:00:00:08:6f:63:65:6e:74:75:72:65:00:00:00:0e
....ocenture....
:73:68:2d:63:6f:6e:6e:65:63:74:69:6f:6e:00:00
ssh-connection..
:09:70:75:62:6c:69:63:6b:65:79:01:00:00:00:07
..publickey.....
:73:68:2d:72:73:61:00:00:01:15:00:00:00:07:73
ssh-rsa........s
:68:2d:72:73:61:00:00:00:01:11:00:00:01:01:00
sh-rsa..........
:42:8e:4b:9c:87:cd:69:20:20:b2:3b:a2:28:b9:a3
:8e:a8:ba:ad:97:4f:8e:9a:78:ff:02:d5:c4:24:b0
......O..x....$.
fa:aa:47:b1:c6:b0:f8:d3:7f:af:bb:21:34:df:da:a6
..G........!4...
:6d:11:e2:fe:04:76:90:86:c1:29:7b:0e:21:a8:75
Qm....v...){.!.u
:83:1b:16:8f:74:9e:91:4c:65:1d:23:6e:42:09:ca
H....t..Le.#nB..
ee:c8:e0:cb:aa:93:ba:3f:85:dd:32:a0:1d:eb:b1:83
.......?..2.....
80:c1:24:47:21:da:15:bf:af:fa:e9:39:c2:b5:71:1f
..$G!......9..q.
a8:dd:5f:7a:93:30:44:87:18:7f:da:42:8e:51:06:b4
.._z.0D....B.Q..
7f:2c:b5:79:5a:5a:e1:cf:c1:4d:16:3f:b4:4a:e4:3f
.,.yZZ...M.?.J.?
94:3e:7b:4f:83:b3:95:60:70:02:04:81:d6:e6:24:ce
.&{O...`p.....$.
d0:b7:c1:c9:25:67:c4:bd:01:0d:f5:f2:18:a6:5c:79
....%g........\y
d4:c2:79:8b:9c:a8:fd:4b:71:08:df:d6:0c:ed:d8:13
..y....Kq.......
e:59:d4:a9:e1:b1:77:66:8e:17:5c:42:2f:67:24:a5
NY....wf..\B/g$.
:7a:8b:12:92:df:56:28:8e:4f:18:86:e8:6f:2e:b4
az....V(.O...o..
e:2c:64:5b:be:7d:84:5d:3c:aa:8a:e6:f0:be:f6:7e
.,d[.}.].......~
f:33:52:6c:6f:d6:35:a3:47:ec:e3:f9:75:45:49:a1
/3Rlo.5.G...uEI.
:00:01:0f:00:00:00:07:73:73:68:2d:72:73:61:00
........ssh-rsa.
:01:00:2b:18:1e:d6:68:ca:cc:90:c0:5a:77:61:12
...+...h....Zwa.
da:7b:9a:f0:a2:81:85:e0:de:fc:f7:c2:c0:98:05:d3
.{..............
f0:cd:d0:1d:df:73:90:80:53:4f:7e:c1:c1:90:7f:00
.....s..SO~.....
b:54:46:a7:28:ec:72:4b:28:5e:9e:d0:0e:28:ea:62
KTF.(.rK(^...(.b
05:53:f2:0b:fc:0f:51:3c:33:93:3d:f7:79:b6:e3:21
.S....Q.3.=.y..!
ea:e8:c4:2d:e1:86:ea:89:31:70:f7:94:e6:c9:ee:15
...-....1p......
1a:b4:7c:ca:ba:f8:7c:5e:fc:4d:54:25:9e:03:17:b8
..|...|^.MT%....
d2:1b:18:1c:1b:c6:78:0e:f1:cd:ed:9a:73:2a:10:e1
......x.....s*..
51:03:d5:38:f2:47:33:78:06:05:70:03:bf:28:e1:37
Q..8.G3x..p..(.7
c8:08:90:04:f8:ba:1e:2b:e3:69:4c:58:46:4c:93:0d
.......+.iLXFL..
cb:0e:dd:1a:24:22:38:06:00:c8:a0:a6:c1:5b:3e:d9
....$"8......[&.
c5:af:3d:66:c0:72:f5:16:c9:24:0b:2f:fd:79:37:f5
..=f.r...$./.y7.
a:6b:cf:52:04:cc:1a:0c:e3:27:c8:13:0c:ff:c5:5c
zk.R.....'.....\
d:59:8c:91:bd:21:24:4b:22:a3:01:78:49:fe:dd:db
MY...!$K"..xI...
:c0:8f:19:31:94:7f:0c:37:34:46:ae:e8:ff:b0:54
....1...74F....T
b:6f:06:df:cf:4f:fb:03:d0:c4:92:59:75:c1:cd:78
.o...O.....Yu..x
&- NET_SSH2_MSG_USERAUTH_FAILURE (since last: 0.0366, network: 0.0365s)
:00:00:08:70:61:73:73:77:6f:72:64:01
....password.
-& NET_SSH2_MSG_SERVICE_REQUEST (since last: 0.0002, network: 0s)
:00:00:0c:73:73:68:2d:75:73:65:72:61:75:74:68
....ssh-userauth
&- NET_SSH2_MSG_DISCONNECT (since last: 0.0349, network: 0.0348s)
:00:00:02:00:00:00:1a:75:6e:65:78:70:65:63:74
........unexpect
:64:20:73:65:72:76:69:63:65:20:72:65:71:75:65
ed service reque
:74:00:00:00:02:65:6e
Login Failed
PHP Notice:
Connection closed prematurely in /usr/local/Cellar/php54/5.4.11/lib/php/phpseclib/NET/SSH2.php on line 2490
set_include_path(get_include_path() . get_include_path().'/phpseclib');
define('NET_SSH2_LOGGING', 2); //turn on logging.
require_once 'NET/SSH2.php';
require_once 'NET/SFTP.php';
require_once 'Crypt/RSA.php';
require_once 'Math/BigInteger.php';
$privatekey = file_get_contents('/.ssh/key.asc');
$rsa = new Crypt_RSA();
$rsa-&setPassword('********');
if ($rsa-&loadKey($privatekey, CRYPT_RSA_PRIVATE_FORMAT_PKCS1 ) === false) {
exit ("private key loading failed!");
echo "private key loading OK!\n";
$sftp = new Net_SFTP('********', 22);
if (!$sftp-&login('********', $rsa) && !$sftp-&login('********', '********')) {
print_r($sftp-&getLog());
echo('Login Failed');
echo('sucess');
It's kinda rare that SFTP servers use both password and publickey authentication. My guess would be that what you most likely have is a password protected private key. If so you can login thusly:
include('Net/SFTP.php');
include('Crypt/RSA.php');
$sftp = new Net_SFTP('www.domain.tld');
$key = new Crypt_RSA();
$key-&setPassword('whatever');
$key-&loadKey(file_get_contents('privatekey'));
if (!$sftp-&login('username', $key)) {
exit('Login Failed');
print_r($sftp-&nlist());
If indeed your server truly is doing both the following should work:
include('Net/SFTP.php');
include('Crypt/RSA.php');
$sftp = new Net_SFTP('www.domain.tld');
$key = new Crypt_RSA();
$key-&setPassword('whatever');
$key-&loadKey(file_get_contents('privatekey'));
if (!$sftp-&login('username', $key) && !$sftp-&login('username', 'password')) {
exit('Login Failed');
print_r($sftp-&nlist());
6,195113893
I would say just try password auth by itself.
Here's what's happening per the logs.
phpseclib sends a SSH_MSG_SERVICE_REQUEST to the server, effectively saying "hey - i wanna auth - that okay?"
The server responds with a SSH_MSG_SERVICE_ACCEPT, effectively saying "sure - send me what you got!"
phpseclib then sends a SSH_MSG_USERAUTH_REQUEST with the public key corresponding to your private key, effectively saying "ok - let's auth with my private key - to make sure you're gonna accept it...
is this public key in your white list?"
The server then responds with a NET_SSH2_MSG_USERAUTH_PK_OK message, effectively saying, "yah - we're okay with the key - please sign the server identifier with it now".
phpseclib does this and then the server is like "never mind! i just remembered - the only type of auth i do is password based auth!"
phpseclib goes "meh" lol and then sends another SSH_MSG_SERVICE_REQUEST, asking to auth, again, and the server is like "what!? why are you asking to auth!?"
Seems like phpseclib perhaps ought not be sending that second SSH_MSG_SERVICE_REQUEST message - that it ought to go direct to a SSH_MSG_USERAUTH_REQUEST - but alas it does currently not do this. I'll try to update the codebase to do just that and will submit a pull request to the author.
6,195113893
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled

参考资料

 

随机推荐