Home > OS >  [for] the SSH link but can not be SCP
[for] the SSH link but can not be SCP

Time:01-07

1, can be in local server through the SCP and server ipA SCP
~? SCP - r zyd @ ipA:/home/zyd/test. S. zyd @ spec - pub
Password:
Test. S 100% 3 0.1 KB/s 00:00
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
~? SCP - r test. S zyd @ ipA:/home/zyd/test1 s zyd @ spec - pub
Password:
Test. S 100% 3 0.1 KB/s 00:00
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

2, can be in local server via SSH login to the ipB, but not SCP transfer files?
~? Zyd @ ipB SCP - r test. S:/home/zyd/test1 s zyd @ spec - pub
Zyd @ ipB 's password:
^ C %

CodePudding user response:

Proved a single text reference http://superuser.com/questions/395356/scp-doesnt-work-but-ssh-does

~? the cat test. S | SSH [email protected] ~/ zyd @ localhost

Authorized users only. All activities may be monitored and reported.
[email protected] 's password:
0 + 0 records in
0 + 0 records out
0 bytes copied, e-05 2.222 s, 0.0 kB/s
  • Related