google-cloud-platform - 权限被拒绝(公钥、gssapi-keyex、gssapi-with-mic)。GCP
问题描述
我用 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用户访问VM rdp,这可能是问题吗?
有任何想法吗?
解决方案
推荐阅读
- javascript - 在移动导航器中分配音频 HTML src 的 Blob 大小限制?
- css - Element UI 更改 el-radio 的文本颜色
- javascript - 酶不适用于脚本“yarn test --coverage”
- html - 如何更改未聚焦的 HTML 选择控件中选定选项的突出显示颜色?
- python - 通配符匹配和替换和/或多字符串通配符匹配
- excel - 检索出现值的多个列号的公式
- python - 使用ffmpeg将特定帧列表提取到numpy数组
- python - 不允许 Numpy memmap 负维度
- ios - 将启动屏幕添加到应用程序时需要 iOS 导航控制器吗?
- sql - How to split a string in sql into multiple columns