How to use ssh to transfer files after ssh logs in to a remote host?

I see that it is said on the Internet that scp rc and so on. Does the ssh connection established cannot be used? do you need to open the connection again?

Thank you. I feel a little troublesome to drive again.

Jul.09,2021

sftp find out.


sz,rz try


just use scp. Scp is an abbreviation for secure copy, a secure copy. Copy the local file to the remote, which is the transfer.
scp local file path username @ remote address: remote folder path
for example:
scp / Users/xxx/Desktop/QQ.jpeg root@123.123.123.1:/image
the qq image on the local desktop is transferred to the image directory of the remote server


  • do not understand the trouble of the subject. Directly scp-r host current directory rootname@targethost: target directory , generally applicable
  • of course, if there is a sftp service in the background, command to log in / gui tool to log in, and transfer quickly
  • sz/rz , plug-ins need to be installed separately, and some tools like iterm cannot use the sz/rz command
  • .

filezilla , choose sftp protocol


two servers to establish ssh authorization, you can type free password scp file


is root login prohibited on both your computers? Forbidding root login is just a password login or a public key. You can go to the server that forbids root login and then reverse copy it from that server.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44854-44aad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44854-44aad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?