1. 登录服务器

打开Windows自带应用程序PowerShell(注:学院机房电脑上PowerShell没装SSH,那么直接使用PuTTY,见本文第三部分),使用SSH协议远程登录服务器,命令为ssh username@host,其中,

  • 用户名usernameu学号
  • 主机host:os.suqiankun.com
  • 初始密码:学号

举例:

$ ssh u202021121004@os.suqiankun.com
u202021121004@os.suqiankun.com's password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-96-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon 18 Apr 2022 10:40:46 AM CST

  System load:  0.02               Processes:             128
  Usage of /:   10.3% of 39.31GB   Users logged in:       1
  Memory usage: 14%                IPv4 address for eth0: 10.0.8.13
  Swap usage:   0%

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

注:

  • 出于安全考虑,Linux对密码没有回显****,不用慌,正确输入密码,按回车即可
  • 没有PowerShell,用Windows命令终端cmd也行,按Win+R,输入cmd,回车便可打开cmd

常见错误

明明输入正确的密码,却还提示拒绝访问,如下:

$ ssh ubuntu@os.suqiankun.com
ubuntu@os.suqiankun.com's password:
Permission denied, please try again.

导致原因是sshusername之间的空格是全角空格(在中文输入法下输入空格),换成半角空格,在英文输入法下输入空格。

2. 修改密码

使用命令passwd修改密码。

$ passwd
Changing password for u202021121004.
Current password:
New password:
Retype new password:

3. 更好用的SSH终端

(1)PuTTY

PuTTY,免费,轻量级。下载PuTTY,安装,打开,填入主机名,点击Open即可,如下图。

PuTTY

按提示输入用户名和密码,便可登录。

login as: ubuntu
ubuntu@os.suqiankun.com's password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-96-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon 18 Apr 2022 09:26:01 PM CST

  System load:  0.01               Processes:             125
  Usage of /:   11.8% of 39.31GB   Users logged in:       0
  Memory usage: 17%                IPv4 address for eth0: 10.0.8.13
  Swap usage:   0%

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

*** System restart required ***
Last login: Mon Apr 18 21:21:34 2022 from 36.249.132.144

(2)MobaXterm

MobaXterm,用SSH登录服务器,MobaXterm提供图形化SFTP浏览器,可以远程修改服务器上的文件。

MobaXterm

(3)SecureCRT

SecureCRT,最好用,但收费。

本文系Spark & Shine原创,转载需注明出处本文最近一次修改时间 2023-04-12 22:30

results matching ""

    No results matching ""