【问题标题】:problem when copying a file over putty ssh to my windows machine [closed]通过putty ssh将文件复制到我的Windows机器时出现问题[关闭]
【发布时间】:2019-06-14 20:01:55
【问题描述】:

我想从使用以下参数连接的远程服务器复制文件

Ip : 192.168.1.1 
port : 2202

然后我用用户名和密码登录:

 user:root
 pass:1234

但是当我尝试使用这个脚本时,它显示连接被拒绝

pscp 192.168.1.1:/etc/hosts c:\temp\example-hosts.txt 

是正确的还是我应该把用户和密码放在某个地方进行身份验证并能够复制文件

【问题讨论】:

    标签: ssh sh putty


    【解决方案1】:

    您需要指定端口,因为它不是标准端口。

    试试

    pscp -P 2202 192.168.1.1:/etc/hosts c:\temp\example-hosts.txt 
    

    【讨论】:

    • 感谢他的工作
    猜你喜欢
    • 1970-01-01
    • 2011-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-18
    • 2016-08-11
    • 2011-10-24
    相关资源
    最近更新 更多