繁体   English   中英

权限被拒绝(公钥、gssapi-keyex、gssapi-with-mic)。 GCP

[英]Permission denied (publickey,gssapi-keyex,gssapi-with-mic). GCP

我用 CentOS 7 启动了一个 VM。我用 next.sh 文件配置了一个 GUI 和一个 xrdp:

#!/bin/sh

#Install​ EPEL and nux Desktop repository rpms
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

#Install​ xfce desktop to get the graphical user interface
yum groupinstall -y "Xfce"

#command​ to change the reboot from CLI to GUI
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

#create xfce clients
echo "xfce4-session" > ~/.Xclients
chmod a+x ~/.Xclients

#Install​ the xrdp
yum -y install xrdp tigervnc-server

#start​ the xrdp service
systemctl start xrdp.service

#enable​ the xrdp service
systemctl enable xrdp.service

一切正常,我可以通过我的计算机上的 rdp 访问该 VM,但是当我在 vm 中并且我尝试访问同一项目中的另一个 vm 时,会出现此错误:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

但它只发生在我尝试使用 vm 终端时,如果我从谷歌 ssh 客户端访问,我可以毫无问题地访问其他虚拟机。

另一件事:我以root用户访问VM rdp,这可能是问题吗?

有任何想法吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM