linux随想

2019-04-19  本文已影响0人  你若安好便是晴天_5c50

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 源   目标     硬链接

上一篇 下一篇

猜你喜欢

热点阅读