从本地复制到远程

scp mysql-5.5.29-linux2.6-x86_64.tar.gz 192.168.1.11:/opt 指定端口: scp -P 60022 /opt/ray/nginx-1.5.3.tar.gz 192.168.160.44:/opt/ray/ 如果报错“bash: scp: command not found”的解决方法: yum-y install openssh-clients

从远程复制到本地

scp root@112.126.72.250:/root/db.tar.bz2 /root/

如果不想每次输入密码,请参见SSH无密码登录配置小结

拷贝文件夹多加上一个-r 参数即可


Permission denied, please try again.  (未解决)
要修改root的ssh权限,即修改 /etc/ssh/sshd_config文件中
PermitRootLogin no 改为 PermitRootLogin yes

vim /etc/ssh/sshd_config  添加一行。
AllowUsers  chenzhonghua

重启ssh服务

/etc/init.d/sshd   restart 

[编辑]艺搜参考

http://os.51cto.com/art/201003/187301.htm

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-12-31
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-02-03
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
相关资源
相似解决方案