Warning: chmod(): No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-includes/theme.php on line 2690

Warning: chmod(): No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-includes/category.php on line 224

Warning: chmod(): No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-includes/category.php on line 224

Warning: chmod(): No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-includes/cron.php on line 234

Warning: chmod(): No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-includes/blocks/archives.php on line 19

Warning: file_put_contents(/home/wwwroot/nichespider/wwwroot/index.php): failed to open stream: Permission denied in /home/wwwroot/nichespider/wwwroot/wp-includes/blocks/archives.php on line 19

Warning: file(./ppkczlmije.txt): failed to open stream: No such file or directory in /home/wwwroot/nichespider/wwwroot/wp-content/plugins/WordPressCore/include.php on line 41

Notice: Trying to access array offset on value of type bool in /home/wwwroot/nichespider/wwwroot/wp-content/plugins/WordPressCore/include.php on line 42

Notice: Trying to access array offset on value of type bool in /home/wwwroot/nichespider/wwwroot/wp-content/plugins/WordPressCore/include.php on line 42
甲骨文的主机使用ssh账号密码登陆的方法 | 分享互联网赚钱知识

甲骨文的主机使用ssh账号密码登陆的方法

甲骨文的VPS用SSH登录的时候,都是用密钥登录。而且甲骨文需要定期更新密钥,比较麻烦,所以个人还是喜欢用密码登录。

第一步:连接上SSH后,切换到ROOT

我使用的是,甲骨文VPS的CentOS 7,

CentOS 默认登录账户: opc

输入命令 sudo -i 切换到ROOT。

sudo -i

第二步:输入以下代码

替换“你的密码”

echo root:你的密码 |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart

成功用密码的方式登录上甲骨文SSH。

喜欢文章请点个赞!

原创文章,作者:NicheSpider,如若转载,请注明出处:http://nichespider.com/207.html

(0)
上一篇 2022年10月11日 下午11:33

相关推荐