马春杰杰博客
致力于深度学习经验分享!

Please login as the user “opc” rather than the user “root”.

甲骨文的服务器root登录,提示:Please login as the user "opc" rather than the user "root".

即使已经在sshd_config中允许了root登录,仍然报这个错。其实,主要是Oracle Cloud Infrastructure(OCI)的实例默认要求就是这么干的,不过我们也有办法,打开下面这个文件:

vi /root/.ssh/authorized_keys

会发现里面默认有两行:

删掉第一行中ssh-rsa前面的内容就可以了,只保留下面这些:

 

免费使用DeepSeek满血版

如果你对这篇文章有什么疑问或建议,欢迎下面留言提出,我看到会立刻回复!

打赏
未经允许不得转载:马春杰杰 » Please login as the user “opc” rather than the user “root”.

留个评论吧~ 抢沙发 评论前登陆可免验证码!

私密评论
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址(选填,便于回访^_^)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

登录

忘记密码 ?

切换登录

注册