亚马逊AWS更改LINUX为ROOT权限密码登陆
亚马逊AWS更改LINUX为ROOT权限密码登陆
first 使用密匙登录aws
ssh -i x1keypair.pem [email protected]
设置或者更改root密码
[ec2-user@ip-172-31-34-97 ~]$ sudo passwd root Changing password for user root. New password: Retype new password:
更改/etc/ssh/sshd_config 配置
vim /etc/ssh/sshd_config find PermitRootLogin change PermitRootLogin yes 去掉注释 find PasswordAuthentication change PasswordAuthentication yes find UsePAM change UsePAM yes
重启ssh 服务
/sbin/service sshd restart
最后 ,使用SecureCRT ,root 直接用密码连接aws
相关推荐
yutou0 2020-10-17
codedecode 2020-11-14
tosim 2020-06-24
returnspace 2020-06-21
summerinsist 2020-08-21
87901735 2020-08-19
benico 2020-08-19
Rain 2020-08-15
RemixGdc 2020-08-15
Jaystrong 2020-08-02
KFLING 2020-08-01
zhangll00 2020-07-29
elitechen 2020-07-28
suosuo 2020-07-28
benico 2020-07-28
xiyoukeke 2020-07-28
小惠 2020-07-27
此处省略三千字 2020-07-20