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

时间:2021-02-12 21:15:58

标签: google-cloud-platform ssh centos7 rdp xfce

我用 CentOS 7 启动了一个虚拟机。我用下一个 .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 终端时才会发生,如果我从 google ssh 客户端访问,我可以毫无问题地访问其他虚拟机。

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

有什么想法吗?

0 个答案:

没有答案