当前位置:网站首页>Xshell、Xftp连接新创建的Unbutu系统虚拟机全流程
Xshell、Xftp连接新创建的Unbutu系统虚拟机全流程
2022-04-23 03:47:00 【Mr.RainsdRop】
前言
博主最近被毕设搞得不要不要的,死去活来弄了一个星期,最后项目没跑通,虚拟机倒玩得贼溜。
该死的Torch,怎么装怎么有毛病,快来位神仙收了我吧!!
人已经是在低谷了,怎么走都是向上。虽然主线仍然推不动,但是推主线的时候倒也是学到了不少东西,也算是勉强不亏。闲话少说,进入主题。
有的时候我们需要从主机上给虚拟机传一些文件,又或者是想要将虚拟机的文件传到主机上。不知道各方神仙是如何解决的,博主一般的话是借助Xshell与Xftp软件完成的。
但是想要使用这两个软件,我们还是先要在虚拟机上配置一些东西的。博主稍微整理了一下网上的资料,总结出了这篇博客。
一.查看服务是否开启
在终端处输入命令:
ps -e | grep ssh
如果显示结果如下图所示,界面中显示sshd
服务和ssh-agent
服务,那么恭喜你,你可以尝试用软件连接虚拟机了:
但如果你缺少其中一个,甚至是一个都没有,也不要慌张,继续看。
二.开启sshd服务(已开启则跳过这步)
在终端中输入(如果不确定虚拟机是否已经安装此包,也可以输入安装命令,不会影响):
sudo apt-get install openssh-server
安装成功之后可以先输入ps -e | grep ssh
查看sshd
服务是否启动。
如果还是没有,则在终端继续输入:
/etc/init.d/ssh start
此时再查看,sshd
服务就已经启动成功了。
三.开启ssh-agent服务(已开启则跳过这步)
在终端中输入:
eval 'ssh-agent'
完成以上三步,我们便可以尝试着用Xshell与Xftp软件连接虚拟机了。
但是接下来还有可能出现几个问题,需者自取。
四.可能出现的其他问题
1.输入密码时只能输入public key
参考博客
https://blog.csdn.net/u012026446/article/details/81302656
解决方案
终端输入:
vim /etc/ssh/sshd_config
然后找到这个位置,将PasswordAuthentication
后面的单词改为yes
(原本应该是no
),然后重启sshd
服务:
2.SSH服务器拒绝访问密码
参考博客
https://blog.csdn.net/weixin_43310339/article/details/97373548
除去上述原因,这个问题的产生还有另一个原因:使用root用户登录,所以博主建议不要使用root用户进行登录。
其他问题暂时没遇到,遇到之后再添加内容,拜了个拜~
版权声明
本文为[Mr.RainsdRop]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45750296/article/details/124111313
边栏推荐
- Man's life
- Vs Studio modifie le langage C scanf et d'autres erreurs
- Variable definition and use
- Win10 boot VMware virtual machine boot seconds blue screen problem perfect solution
- Wechat applet canvas draws a simple asymptotic color of the dashboard
- ROS series (V): common commands in ROS
- Common exceptions
- VS Studio 修改C语言scanf等报错
- SQL learning record
- 什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
猜你喜欢
[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022
Digital image processing third edition Gonzalez notes Chapter 2
How Zotero quotes in word jump to references / hyperlink
The art of concurrent programming (6): explain the principle of reentrantlock in detail
Basic use of Charles
Common auxiliary classes
ROS series (III): introduction to ROS architecture
Install PaddlePaddle on ARM
On the principle of concurrent programming and the art of notify / Park
What if win10 doesn't have a local group policy?
随机推荐
硬核拆芯片
什么是软件验收测试,第三方软件检测机构进行验收测试有什么好处?
PYMOL-note
网络原理 | TCP/IP中的连接管理机制 重要协议与核心机制
Redis(17) -- Redis缓存相关问题解决
Applet - WXS
How Zotero quotes in word jump to references / hyperlink
Definition, understanding and calculation of significant figures in numerical analysis
Several common methods of multithreading
7-3 poly width
JS takes out the same elements in two arrays
Detailed explanation on the use of annotation tool via (VGg image annotator) in mask RCNN
What if you encounter symbols you don't know in mathematical formulas
现货黄金操作技巧_估波曲线
Writing latex with vscode - the latest tutorial 2022 / 4 / 17
Leetcode 617 merge binary tree
SQL learning record
Installation and configuration of clion under win10
What if win10 doesn't have a local group policy?
Identifier, keyword, data type