记一次 Vultr配置
这里不想排版,因为心情复杂。
第一次搞这个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
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!
- 1this 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
- 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
- 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
- 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配置的更多相关文章
- 记一次ssh配置的锅
我们在使用git来管理代码的时候不可避免的要用到ssh密匙,这个密匙怎么配置的百度上很多. 我这边是使用sourcetree来配合管理代码的,但是我ssh配置好了以后无论是克隆代码还是推送代码都提示我 ...
- 记一次Spring配置事故
在引入Spring的Validated时,需要声明如下bean: @Beanpublic MethodValidationPostProcessor methodValidationPostPro ...
- 记Tfs2010 Tfs_Warehouse路径配置更新
继上一次tfs数据库迁移问题续. Tfs数据库迁移成功后遗留了部分问题,本次记录问题处理过程: 原服务器地址10.58.8.231,迁移至新服务器10.58.1.230后TFS管理控制台中 应用层 – ...
- ASP.NET CORE 边学边记之 SwaggerUI简单配置
前言 当使用 ASP.NET CORE 开发WebApi程序时候,一般使用SwaggerUI生成接口文档.本文记录最简单的一个配置.(生成的文档无注释) 操作 首先安装Nuget包. 然后在Start ...
- 记一次hosts配置内容过多引起的故障
问题环境 系统环境 CentOS release 6.9 (Final) 2.6.32-696.16.1.el6.x86_64 Java 环境 1.8.0_151 Apollo 1.4.0 代码框架 ...
- 记联想SR850 Raid配置的一个bug
管理raid阵列时,如果要删除某个指定的阵列,则需要选中阵列名而不能选中虚拟磁盘.如果选中的是虚拟磁盘,点击删除后,会删除整个阵列列表里的第一个阵列,而非虚拟磁盘所在的阵列. 过程如下 联想SR850 ...
- 记一次Xshell配置ssh免密登录时的问题
问题: 今天在配置SSH免密登录连接自己的阿里云服务器,在将RSA加密生成的公钥放到服务器后,用Xshell连接服务,出现所选的用户密钥未在远程主机上注册这样的提示,一时懵逼,不知所措,后面终于找到了 ...
- 记一个nginx server_name配置多个时的坑
文章转载自:https://blog.csdn.net/u011296355/article/details/106740860/ 背景 为了区分线上环境和测试环境,我弄了个自己测试专用的域名test ...
- 记一次nginx配置伪静态规则
server { listen 80; server_name sss.cn; root "root/"; location / { index index.html index. ...
随机推荐
- 使用Hydra对ssh和rdp进行爆破的简单明令
使用方式 hydra <IP> ssh/rdp -l <USER> -p <PASSWORD> -V 使用大写的L和P,可以替换成字典文件进行爆破 如hydra & ...
- CodeForces 778B - Bitwise Formula
题意: 选择一个 m 位的二进制数字,总分为 n 个算式的答案之和.问得到最低分和最高分分别应该取哪个二进制数字 分析: 因为所有数字都是m位的,高位的权重大于低位 ,我们就从高到低考虑 ans 的每 ...
- 【winfrom-多语言】实现多语言切换:使用资源文件
使用资源文件实现多语言切换. 1. 新建一个Form,名为FrmMain. 在界面添加一个MenuStrip和一个Button. 并设置好控件的文本和位置.(Language=(Default)) 2 ...
- .net大文件传输断点续传源码
IE的自带下载功能中没有断点续传功能,要实现断点续传功能,需要用到HTTP协议中鲜为人知的几个响应头和请求头. 一. 两个必要响应头Accept-Ranges.ETag 客户端每次提交下载请求时,服务 ...
- Neko does Maths CodeForces - 1152C 数论欧几里得
Neko does MathsCodeForces - 1152C 题目大意:给两个正整数a,b,找到一个非负整数k使得,a+k和b+k的最小公倍数最小,如果有多个k使得最小公倍数最小的话,输出最小的 ...
- 中国剩余定理及其拓展 CRT&EXGCD
中国剩余定理,又叫孙子定理. 作为一个梗广为流传.其实它的学名叫中国单身狗定理. 中国剩余定理 中国剩余定理是来干什么用的呢? 其实就是用来解同余方程组的.那么什么又是同余方程组呢. 顾名思义就是n个 ...
- HDU 5884 Sort ——(K叉哈夫曼树)
这题真心比较奥义,先见这个人的博客:http://blog.csdn.net/libin66/article/details/52565484 补0的方法是使得其满足成为满K叉树,而其博客中所说的“所 ...
- ARTS打卡计划第三周
Algorithms: https://leetcode-cn.com/problems/4sum/ 算法是先排序,然后按照一次循环按照三个数和两边逼中,考虑去重. Review: https://w ...
- mysql 数据库备份 -- (定时任务)
场景: 我们经常需要对数据库备份 方式一:mysql 数据备份方式 在linux 备份方式 通常采用 mysqldump -uroot -ppassword --database 数据库名 > ...
- Android RecyclerView与ListView比较
RecyclerView 概述 RecyclerView 集成自 ViewGroup .RecyclerView是Android-support-V7版本中新增的一个Widgets,官方对于它的介绍是 ...