[Linux]_ELVE_ssh登录远程阿里服务器

时间:2022-01-11 07:36:02

0x00  背景

最近新开了一个服务器,每次都用网页操作太麻烦,索性就用软件登录(貌似界面还有vim支持的也比网页的好),在网上寻找半天,找到一个软件,感觉特别好,

名叫:mobaxterm,好像是免费的,大家可以自己Google下载。

首先,打开界面,中间有个start local terminal ,大概意思是打开本地命令行吧,反正点他就对了

点开后就是比较熟悉的命令行界面,上面呢,会显示如下字符

     ┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v10. • │
│ (X server, SSH client and network tools) │
│ │
│ ➤ Your computer drives are accessible through the /drives path │
│ ➤ Your DISPLAY is set to 192.168.1.156:0.0 │
│ ➤ When using SSH, your remote DISPLAY is automatically forwarded │
│ ➤ Each command status is specified by a special symbol (✔ or ✘) │
│ │
│ • Important: │
│ This is MobaXterm Personal Edition. The Professional edition │
│ allows you to customize MobaXterm for your company: you can add │
│ your own logo, your parameters, your welcome message and generate │
│ either an MSI installation package or a portable executable. │
│ We can also modify MobaXterm or develop the plugins you need. │
│ For more information: http://mobaxterm.mobatek.net/download.html │
└────────────────────────────────────────────────────────────────────┘

反正也看不懂,就当做是软件自我介绍好了,下面进入正题

0x01  登录

代码一:(ps:我在阿里云买的服务器,学生优惠一个月9.9,ubuntu系统,自带ssh)

ssh root@www.baidu.com

这段代码很好理解,用ssh登录远程服务器,root是远程用户名,我没改过所以就用的root,注意是远程系统上的。www.baidu.com是远程域名,这里我已近解析好了,直接输入网址就会解析到服务器上,当然,如果没有购买域名,还可以按如下写

ssh root@xxx.xxx.xxx.xxx

后面的x指的是外网ip,记住是外网ip,不是内网,在阿里云控制窗口能看到。

接下来看到类似如下代码,说明你登陆成功了    注:阿里云ubuntu16.04

Welcome to Ubuntu 16.04. LTS (GNU/Linux 4.4.--generic x86_64)

 * Documentation:  https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage Welcome to Alibaba Cloud Elastic Compute Service !

然哦户就可以进行其他操作了