高性能服务器配置经验指南3——安装服务器可能遇到的问题及解决方法
文章目录
- 1、重装系统后VScode远程连接失败问题
- 2、XRDP连接黑屏问题
- 1. 打开文件
- 2. 添加配置
- 3. 重启xrdp服务
在完成 服务器基本配置和 深度学习环境准备后,大家应该就可以正常使用服务器了,推荐使用VScode远程连接使用,比较稳定方便,Pycharm不好用,VScode远程连接方法网上有很多,这里推荐一篇: https://blog.csdn.net/qq_64634610/article/details/146102837?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522b54799962faa5aee9ad20c1e4f2eb0f1%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=b54799962faa5aee9ad20c1e4f2eb0f1&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2alltop_click~default-2-146102837-null-null.142v102pc_search_result_base6&utm_term=vscode%E8%BF%9C%E7%A8%8B%E8%BF%9E%E6%8E%A5linux%E6%AD%A5%E9%AA%A4&spm=1018.2226.3001.4187
本文的主要目的是记录笔者遇到的一些小问题和解决方法,以后尽量持续更新遇到的问题。
1、重装系统后VScode远程连接失败问题
重装系统后可能SSH连接会出现类似这样的问题:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
50:e6:cb:58:bc:b7:a3:f6:e8:8f:46:a7:c1:5f:c2:df.
Please contact your system administrator.
Add correct host key in /home/cobyeah/.ssh/known_hosts to get rid of this message.
Offending key in /home/cobyeah/.ssh/known_hosts:7
RSA host key for 192.168.0.4 has changed and you have requested strict checking.
Host key verification failed.
解决方法:直接找到自己电脑上"C:\Users\username.ssh"文件夹,把里面的东西全删了再重连就可以连上。
2、XRDP连接黑屏问题
我一般使用xrdp连接linux的远程桌面,但有时刚安装好时,连接总是黑屏,解决方法如下:
1. 打开文件
sudo vim /etc/xrdp/startwm.sh
2. 添加配置
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
3. 重启xrdp服务
sudo systemctl restart xrdp.service