当前位置:网站首页>The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
2022-04-23 03:48:00 【Mr.RainsdRop】
Preface
Bloggers have been bothered by Bi Shi recently , It's been a week of dead and alive , Finally, the project failed , The virtual machine is playing like a thief .
blamed Torch, What's wrong with the installation , Come on, a fairy, take me !!
People are already at a low ebb , How to walk is up . Although the main line still doesn't move , But I also learned a lot when pushing the main line , It's barely a loss . Gossip , Get into the subject .
Sometimes we need to transfer some files from the host to the virtual machine , Or you want to transfer the files of the virtual machine to the host . I don't know how the immortals of all parties solved it , Bloggers usually use Xshell And Xftp Software completed .
But if you want to use these two software , We still need to configure some things on the virtual machine first . The blogger sorted out the information on the Internet a little , Summed up this blog .
One . Check whether the service is on
Enter the command at the terminal :
ps -e | grep ssh
If the display result is as shown in the figure below , Display in the interface sshd
Service and ssh-agent
service , So congratulations , You can try connecting virtual machines with software :
But if you lack one of them , Not even one , Don't panic , Continue to look at .
Two . Turn on sshd service ( If enabled, skip this step )
Input in the terminal ( If you are not sure whether the virtual machine has installed this package , You can also enter the installation command , Does not affect the ):
sudo apt-get install openssh-server
After the installation is successful, you can enter ps -e | grep ssh
see sshd
Whether the service starts .
If there is still no , Continue to input... At the terminal :
/etc/init.d/ssh start
Check again at this time ,sshd
The service has been started successfully .
3、 ... and . Turn on ssh-agent service ( If enabled, skip this step )
Input in the terminal :
eval 'ssh-agent'
Complete these three steps , We can try to use Xshell And Xftp The software is connected to the virtual machine .
But there are several problems that may arise next , Take it by yourself .
Four . Other problems that may arise
1. When entering a password, you can only enter public key
Reference blog
https://blog.csdn.net/u012026446/article/details/81302656
Solution
The input terminal :
vim /etc/ssh/sshd_config
Then find this location , take PasswordAuthentication
Change the following word to yes
( It should have been no
), And then restart sshd
service :
2.SSH The server denied access to the password
Reference blog
https://blog.csdn.net/weixin_43310339/article/details/97373548
Remove the above reasons , There is another reason for this problem : Use root The user login , So bloggers suggest not to use root user Log in .
Other problems haven't been encountered yet , Add content after encountering , I made a obeisance ~
版权声明
本文为[Mr.RainsdRop]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230347118219.html
边栏推荐
- ROS series (IV): ROS communication mechanism series (6): parameter server operation
- Websites frequented by old programmers (continuously updated)
- Key point detection of human hand based on mediapipe
- ROS series (I): rapid installation of ROS
- 使用大华设备开发行AI人流量统计出现时间不正确的原因分析
- SQL learning record
- Picture synthesis video
- [AI vision · quick review of NLP natural language processing papers today, issue 30] Thu, 14 APR 2022
- The art of concurrent programming (2): synchronized usage scenarios
- AI CC 2019 installation tutorial under win10 (super detailed - small white version)
猜你喜欢
Wechat applet cloud database value assignment to array error
Paddlepaddle does not support arm64 architecture.
Key point detection of human hand based on mediapipe
Applet - WXS
What if you encounter symbols you don't know in mathematical formulas
Instructions for fastmock
The great gods in acmer like mathematics very much
Notes sur l'apprentissage profond (Ⅱ) - - Principe et mise en oeuvre de la fonction d'activation
Overview of knowledge map (II)
Concepts of objects and classes
随机推荐
What to pay attention to when writing the first code
Websites frequented by old programmers (continuously updated)
Paddlepaddle model to onnx
SQL topic exercise summary
Identifier and type conversion
【微服务】(十)—— 统一网关Gateway
网络原理 | TCP/IP中的连接管理机制 重要协议与核心机制
[AI vision · quick review of robot papers today, issue 29] Mon, 14 Feb 2022
ROS series (I): rapid installation of ROS
The art of concurrent programming (2): synchronized usage scenarios
According to the category information and coordinate information of the XML file, the category area corresponding to the image is pulled out and stored in the folder.
The art of concurrent programming (5): the use of reentrantlock
Add the compiled and installed Mysql to the path environment variable
A sword is a sword. There is no difference between a wooden sword and a copper sword
Variable definition and use
Wechat applet cloud database value assignment to array error
Vscode download and installation + running C language
Section 2 map and structure in Chapter 6
Using VBA interval to extract one column from another in Excel
Applet - canvas drawing Poster