当前位置:网站首页>解决无法通过ssh服务远程连接虚拟机
解决无法通过ssh服务远程连接虚拟机
2022-07-04 23:00:00 【anieoo】
我在通过vscode的ssh服务连接ubuntu的时候,报错:
ssh: connect to host port 22: Connection refused
以下是解决方案:
一、安装openssh-server服务
sudo apt-get install openssh-server
二、安装防火墙
sudo apt-get install ufw
三、开户防火墙
sudo ufw enable
四、防火墙充许22端口对外开放
sudo ufw allow 22
边栏推荐
- A complete tutorial for getting started with redis: understanding and using APIs
- The difference between debug and release
- Redis入门完整教程:事务与Lua
- P2181 diagonal and p1030 [noip2001 popularization group] arrange in order
- Redis démarrer le tutoriel complet: Pipeline
- LabVIEW中比较两个VI
- Redis introduction complete tutorial: Collection details
- Servlet服务器端和客户端中文输出乱码问题
- Redis:Redis的事务
- Editplus-- usage -- shortcut key / configuration / background color / font size
猜你喜欢
Redis入门完整教程:Bitmaps
Docker镜像的缓存特性和Dockerfile
Qt个人学习总结
MariaDB's Galera cluster application scenario -- multi master and multi active databases
Redis入门完整教程:慢查询分析
[Jianzhi offer] 6-10 questions
Redis getting started complete tutorial: publish and subscribe
CTF competition problem solution STM32 reverse introduction
字体设计符号组合多功能微信小程序源码
【图论】拓扑排序
随机推荐
金融市场,资产管理与投资基金
Duplicate ADMAS part name
VIM editor knowledge summary
Docker镜像的缓存特性和Dockerfile
Redis: redis transactions
A complete tutorial for getting started with redis: getting to know redis for the first time
JS 3D explosive fragment image switching JS special effect
qt绘制网络拓补图(连接数据库,递归函数,无限绘制,可拖动节点)
Servlet服务器端和客户端中文输出乱码问题
Stm32 Reverse Introduction to CTF Competition Interpretation
Redis入门完整教程:哈希说明
【taichi】用最少的修改将太极的pbf2d(基于位置的流体模拟)改为pbf3d
Redis introduction complete tutorial: List explanation
Redis introduction complete tutorial: client communication protocol
【图论】拓扑排序
[graph theory] topological sorting
Talk about Middleware
Redis入门完整教程:Redis使用场景
List related knowledge points to be sorted out
Ffmpeg quick clip