美文网首页
远程连接

远程连接

作者: 勤劳的杯子 | 来源:发表于2019-05-20 21:18 被阅读0次

连接另一台linux服务器使用ssh命令

shh [user@]hostname [command] 
  • ssh root@192.168.25.128


向远程服务器传送文件使用sftp命令

[root@localhost ~]# sftp 
usage: sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
            [-o ssh_option] [-P sftp_server_path] [-R num_requests]
            [-S program] [-s subsystem | sftp_server] host 
       sftp [user@]host[:file ...] 
       sftp [user@]host[:dir[/]]
       sftp -b batchfile [user@]host
  • sftp -oPrt=22 root@192.168.25.128

如果上面方法不管用,可以尝试指定端口号
sftp root@192.168.25.128 -p8022


相关文章

网友评论

      本文标题:远程连接

      本文链接:https://www.haomeiwen.com/subject/bzzbkqtx.html