这里不想排版,因为心情复杂。

第一次搞这个VPS,真的是很气人,由于中英文的关系我一开始就误操作了,让VPS一直挂载着Ubuntu18.10,所以系统一直是在光盘的引导界面,这个问题知道我注册后的四个小时才知道!

还有,就是它有一个活动,充十块充五十块,这个下面有一个大大的Remove,千万别去点到,不然你就没有了,郁闷。

去掉光盘挂载以后,就能进系统并且SSH登陆配置了。

//SSH登陆 (这里使用Xshell6) 百度即可
//安装宝塔:
//SSH终端输入一句话就行了,复制下面然后粘贴回车。
yum install –y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

问题解析: 为什么下载了SSH登陆客户端却显示网络中断?

这个问题对我来说没什么卵用,因为我根本不是出的这个错误,不过还是分享一下。

原帖:https://stackoverflow.com/questions/53099865/connection-closed-by-xx-xx-xx-xx-on-port-22

0
 

I'm trying to connect to a distant server from a Mac device. When I type the ssh command:

ssh root@xx.xxx.xxx.xx

I receive this error:

Connection closed by xx.xxx.xxx.xx port 22

I was told to restart ssh this way : service sshd restart but when I execute it, I'm told that service is not found.

I'm a newbie and I know that I'm missing something. Your help would so welcome.

Regards!

asked Nov 1 '18 at 10:56
zakaria mouqcitzakaria mouqcit

193112
  • 1
    this may be better for unix SE or super user SE - that aside. I get this sometimes when the server you're connecting to is on a different port from 22. Also that restart command should be run on the server - not your machine – treyBake Nov 1 '18 at 12:19
  •  
    @ThisGuyHasTwoThumbs How can I run it on the server while I can't connect to it? – zakaria mouqcit Nov 1 '18 at 13:28
  •  
    is it an external server you have no control over? – treyBake Nov 1 '18 at 13:29
  •  
    Yes it's an external server that I can only access to it via terminal or filezilla. While I can't connect I can do nothing. – zakaria mouqcit Nov 1 '18 at 13:30
  •  
    is it a hosting company-controlled server? – treyBake Nov 1 '18 at 13:35
 

1 Answer 1

-2
 
  1. Check the server computer is opened 20 port

Windows - [run -> cmd -> type this string]

       netstat -an

Linux - [in terminal]

      netstat -nap

type this string in your server computer what you have you can check what port is opened

  1. let server computer allow access port 22

Windows

goto Firewall -> advanced settings -> Inbound rules -> new rules -> add port tcp/22

Linux

iptables -I INPUT 1 -p tcp --dport 22-j ACCEPT 

iptables -I OUTPUT 1 -p tcp --dport 22-j ACCEPT

you have to do by root

answered Nov 1 '18 at 11:09
TwoIceFishTwoIceFish

13
  •  
    Can you please tell me how? – zakaria mouqcit Nov 1 '18 at 11:12
  •  
    @TwolceFish Welcome to StackOverflow. When you answer a question on StackOverflow, Please make sure that you understand all possible scenarios of the problem, explain the reason of the problem, and then propose a solution. If you think the problem in the question as you understand is too little to be discussed as an answer, put it as a comment. This link would help you: stackoverflow.com/help/how-to-answer – Aditya Nov 1 '18 at 11:17
  • 1
    @Aditya ok it is my mistake – TwoIceFish Nov 1 '18 at 12:07

记一次 Vultr配置的更多相关文章

  1. 记一次ssh配置的锅

    我们在使用git来管理代码的时候不可避免的要用到ssh密匙,这个密匙怎么配置的百度上很多. 我这边是使用sourcetree来配合管理代码的,但是我ssh配置好了以后无论是克隆代码还是推送代码都提示我 ...

  2. 记一次Spring配置事故

    在引入Spring的Validated时,需要声明如下bean:   @Beanpublic MethodValidationPostProcessor methodValidationPostPro ...

  3. 记Tfs2010 Tfs_Warehouse路径配置更新

    继上一次tfs数据库迁移问题续. Tfs数据库迁移成功后遗留了部分问题,本次记录问题处理过程: 原服务器地址10.58.8.231,迁移至新服务器10.58.1.230后TFS管理控制台中 应用层 – ...

  4. ASP.NET CORE 边学边记之 SwaggerUI简单配置

    前言 当使用 ASP.NET CORE 开发WebApi程序时候,一般使用SwaggerUI生成接口文档.本文记录最简单的一个配置.(生成的文档无注释) 操作 首先安装Nuget包. 然后在Start ...

  5. 记一次hosts配置内容过多引起的故障

    问题环境 系统环境 CentOS release 6.9 (Final) 2.6.32-696.16.1.el6.x86_64 Java 环境 1.8.0_151 Apollo 1.4.0 代码框架 ...

  6. 记联想SR850 Raid配置的一个bug

    管理raid阵列时,如果要删除某个指定的阵列,则需要选中阵列名而不能选中虚拟磁盘.如果选中的是虚拟磁盘,点击删除后,会删除整个阵列列表里的第一个阵列,而非虚拟磁盘所在的阵列. 过程如下 联想SR850 ...

  7. 记一次Xshell配置ssh免密登录时的问题

    问题: 今天在配置SSH免密登录连接自己的阿里云服务器,在将RSA加密生成的公钥放到服务器后,用Xshell连接服务,出现所选的用户密钥未在远程主机上注册这样的提示,一时懵逼,不知所措,后面终于找到了 ...

  8. 记一个nginx server_name配置多个时的坑

    文章转载自:https://blog.csdn.net/u011296355/article/details/106740860/ 背景 为了区分线上环境和测试环境,我弄了个自己测试专用的域名test ...

  9. 记一次nginx配置伪静态规则

    server { listen 80; server_name sss.cn; root "root/"; location / { index index.html index. ...

随机推荐

  1. Qt实现多国语言(即界面翻译)可实时进行切换

    .在工程文件添加 TRANSLATIONS = debug/lang_English.ts \ debug/lang_Chinese.ts .在需要翻译的地方用上tr 例如:setText(tr(&q ...

  2. RobotFramework 截取中文中的数字比较时长

    先看下需求,这个报表中有个时长,需要对昨日和前日的时长进行比较,我们获取到的元素是例如“9分43秒”这样的格式 1.首先要讲中文中的分和秒分别提取出来 提取python代码如下: import res ...

  3. 部署LVS-NAT模式调度器

    创建集群服务器 [root@proxy ~]# yum -y install ipvsadm [root@proxy ~]# ipvsadm -A -t -s wrr 添加真实服务器 [root@pr ...

  4. H5 设计尺寸

    750*1218 微信下 兼容 7plus 内容高度 居中 1000px 内 750*1448 微信下 兼容 iphoneX 微信导航栏高度 64px 64px =  导航栏44+状态栏20 但是现在 ...

  5. 51 Nod 1092 回文字符串

    1092 回文字符串  基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题  收藏  关注 回文串是指aba.abba.cccbccc.aaaa这种左右对称的字符串.每 ...

  6. Spring Boot教程(三十六)使用MongoDB数据库(2)

    快速开始使用Spring-data-mongodb 若MongoDB的安装配置采用默认端口,那么在自动配置的情况下,我们不需要做任何参数配置,就能马上连接上本地的MongoDB.下面直接使用sprin ...

  7. Zabbix 4.0.2试用(七):在Linux主机中安装zabbix agent并添加该主机(yum源安装)

    Zabbix 4.0.2试用(七):在Linux主机中安装zabbix agent并添加主机(yum源安装) 2018年12月20日, 上午6:42 之前介绍的是下载源安装包,编译安装的方式来安装ag ...

  8. [CSP-S模拟测试]:Drink(模拟)

    题目传送门(内部题10) 输入格式 输入第一行三个数$N,M,Q$分别表示棋盘的行数.列数和操作个数.接下来$N$行每行$M$个数表示一开始棋盘上宝物的价值.接下来$Q$行每行$3$个数$x,y,c$ ...

  9. flask 第四篇 模板语言jinja2

    是时候开始写个前端了,Flask中默认的模板语言是Jinja2 现在我们来一步一步的学习一下 Jinja2 捎带手把 render_template 中留下的疑问解决一下 首先我们要在后端定义几个字符 ...

  10. Java-GC 垃圾收集算法

    程序计数器.虚拟机栈.本地方法栈随线程而生,随线程而灭. 栈帧随着方法的开始而入栈,随着方法的结束而出栈. 这几个区域的内存分配和回收都具有确定性,在这几个区域内不需要过多考虑回收的问题,因为方法结束 ...