当前位置:网站首页>解决无法通过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 边栏推荐
猜你喜欢

Redis:Redis的事务

QT drawing network topology diagram (connecting database, recursive function, infinite drawing, dragging nodes)

Explanation of bitwise operators

【js】-【排序-相关】-笔记

phpcms付费阅读功能支付宝支付

Tweenmax emoticon button JS special effect

高通WLAN框架学习(30)-- 支持双STA的组件

Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

MariaDB的Galera集群-双主双活安装设置

Redis入门完整教程:Pipeline
随机推荐
[OpenGL] note 29 anti aliasing (MSAA)
金融市场,资产管理与投资基金
Redis démarrer le tutoriel complet: Pipeline
小程序vant tab组件解决文字过多显示不全的问题
[Taichi] change pbf2d (position based fluid simulation) of Taiji to pbf3d with minimal modification
S32 Design Studio for ARM 2.2 快速入门
[ODX studio edit PDX] - 0.2-how to compare two pdx/odx files of compare
Redis: redis transactions
Redis入门完整教程:慢查询分析
UML图记忆技巧
PS style JS webpage graffiti board plug-in
Complete tutorial for getting started with redis: bitmaps
Redis入门完整教程:API的理解和使用
Application of machine learning in housing price prediction
SHP data making 3dfiles white film
[try to hack] wide byte injection
Redis入门完整教程:GEO
MariaDB's Galera cluster application scenario -- multi master and multi active databases
【爬虫】数据提取之JSONpath
【图论】拓扑排序