ssh

作者: 小鸡小季 | 来源:发表于2016-04-17 16:24 被阅读45次

1.更新 apt-get update
2.安装 apt-get install openssh-server
3.检测是否启动 ps -e |grep ssh
4.如果没有启动就手动启动
/etc/init.d/ssh start
5.配置ssh-server,配置文件位于/etc/ssh/sshd_config,默认端口为22,为了安全,一般自定义为其他端口,然后重启
sudo /etc/init.d/ssh resart
ssh默认root用户禁止登陆

PubkeyAuthentication yes #启用PublicKey认证。

AuthorizedKeysFile .ssh/authorized_keys #PublicKey文件路径。

PasswordAuthentication no #不适用密码认证登录。

传输文件

lrzsz包
快捷命令 rz sz

相关文章

网友评论

      本文标题:ssh

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