最近新開了一個服務器,每次都用網頁操做太麻煩,索性就用軟件登陸(貌似界面還有vim支持的也比網頁的好),在網上尋找半天,找到一個軟件,感受特別好,html
名叫:mobaxterm,好像是免費的,你們能夠本身Google下載。ubuntu
首先,打開界面,中間有個start local terminal ,大概意思是打開本地命令行吧,反正點他就對了vim
點開後就是比較熟悉的命令行界面,上面呢,會顯示以下字符服務器
┌────────────────────────────────────────────────────────────────────┐ │ • MobaXterm Personal Edition v10.2 • │ │ (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 │ └────────────────────────────────────────────────────────────────────┘
反正也看不懂,就當作是軟件自我介紹好了,下面進入正題ssh
代碼一:(ps:我在阿里雲買的服務器,學生優惠一個月9.9,ubuntu系統,自帶ssh)阿里雲
ssh root@www.baidu.com
這段代碼很好理解,用ssh登陸遠程服務器,root是遠程用戶名,我沒改過因此就用的root,注意是遠程系統上的。www.baidu.com是遠程域名,這裏我已近解析好了,直接輸入網址就會解析到服務器上,固然,若是沒有購買域名,還能夠按以下寫spa
ssh root@xxx.xxx.xxx.xxx
後面的x指的是外網ip,記住是外網ip,不是內網,在阿里雲控制窗口能看到。.net
接下來看到相似以下代碼,說明你登錄成功了 注:阿里雲ubuntu16.04命令行
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-63-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 !
然哦戶就能夠進行其餘操做了code