1.ssh配置文件位置:(需要以管理员身份运行)
/etc/ssh/sshd_config
2.允许root用户登录:
PermitRootLogin yes
3.运行空密码:
PermitEmptyPaswords yes
4.重启
service sshd restart
5.配置密钥访问:
ssh-keygen
cat 公钥 >> authorized_keys
6.linux源码一般放在/usr/local/src下面
7.visudo
root ALL=(ALL) ALL
8.源码安装位置:
/usr/src:系统级别的程序,c:/windows
/usr/local/src:用户级别的程序,c:/Programes file
/opt: d:/software
9.ln -s 软连接
ln 源 目标 硬链接
网友评论