linux ssh命令

来源:互联网 发布:怎么设计一个软件 编辑:程序博客网 时间:2024/05/29 11:03

一、关于 ssh 的好处, 相信不用我多说了吧?简而言之, 之前的 rpc command 与 telnet 都全可用 ssh 代替.比方如下的这些常见功能:

1、远程登录

ssh user@remote.machine

2、远程执行

ssh user@remote.machine 'command ...'

3、远程复制

scp user@remote.machine:/remote/path /local/path


二、其他

1、ssh互信(省略);

2、ssh禁止 root 登录

# vi /etc/ssh/sshd_config

PermitRootLogin no

0 0