安装好的alpine linux 要开启ssh远程登录比较简单,只需要配置sshd服务允许root账户登录即可。
- 修改
sshd_config
vi /etc/ssh/sshd_config
- 配置中添加下面代码即可
PermitRootLogin yes
- 重启sshd服务
service sshd restart
- 用root登录测试
ssh root@127.0.0.1
安装好的alpine linux 要开启ssh远程登录比较简单,只需要配置sshd服务允许root账户登录即可。
sshd_config
vi /etc/ssh/sshd_config
PermitRootLogin yes
service sshd restart
ssh root@127.0.0.1