scp -P2222local_file remote_user@remote_host:/remote/directory/ 在这个命令中,-P 参数用于指定端口号为 2222,local_file 是要传输的本地文件,remote_user 是远程计算机的用户名,remote_host 是远程计算机的 IP 地址或主机名,/remote/directory/ 是要传输到的远程目录。 注意,如果你使用非标准端口号进行连接,...