SSH
主配置文件:/etc/ssh/sshd_config
port //可以增加多个
port 22
port 222
第十一天学习《Linux就该这么学》
为了增加安全,禁用root用户登录,在主配置文件中
permitrootlogin no

关于认证
密码认证:
**认证:
使用ssh-****** 命令生成**对;私钥加密 公钥解密;然后我们需要将公钥发送给对端ssh-copy-id 192.168.8.12
此时也可关闭密码认证,只使用**认证登录
主配置文件中
passwordauthentication no

远程传输scp
是基于ssh的远程传输,scp只是一个命令
scp 地址:目录/文件 本地目录
scp [email protected]:/home/tt/test.txt ./
命令是将左边位置传到右边位置 ------------------->>

scp 本地目录/文件 地址:目录
scp ./test.txt [email protected]:/home/tt/
命令依然是将左边位置传到右边位置 ------------->>

不间断会话服务
yun install screen

screed -S t1 //创建一个不间断的会话
screed -ls //查看
screed -r t1 //调用会话

第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》
第十一天学习《Linux就该这么学》

第十一天学习《Linux就该这么学》

相关文章: