Transferring Files Between Servers Using wget, smc-sftp
Usage of wget
在需要传输的文件所在目录下
pyhton3 -m http.server 8002(端口号)
在本机输入wget命令获取开发机上的文件
wget root@ip:8080(端口号)/文件名
ip地址获取:ipconfig:xgbe0里的inet addr:是ip地址
Usage of smc-sftp:
SFTP (Secure File Transfer Protocol)
[username]@[ip_address]: The username and IP address of the remote server.
[remote_host_dir]: The directory on the remote server where you want to upload the file.
‘put [local_filepath]’: The input redirection for the put
command, which uploads the file specified by [local_filepath].
1 | smc-sftp [username]@[ip_address]:[remote_host_dir] <<< 'put [local_filepath]' |