ssh addu@172.26.xxx.xxx
# 密码
addu@172.26.xxx.xxx's password:
=====Welcome!
We need to get sudo permission first. Enter the password for `addu`.
# 输入addu的密码,获取sudo权限
[sudo] password for addu:
=====Let's setup a new account and create a container now.
# 输入用户名,接下来自动创建用户并新建虚拟机
Enter your username: test
Creating user...
Allocating container for test...
Creating test
Allocating ssh port... 10020
Device sshproxy added to test
# 设置用户密码
set password for test now (host only).
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Login this host via `ssh <username>@<host-ip>` to manage your container.
Done!
# 使用新建的用户登陆并管理虚拟机
ssh test@172.26.xxx.xxx
test@172.26.xxx.xxx's password:
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-54-generic x86_64)
……
Hi, test
You're using the GPU Server in Vision Group.
==========About your container:
Your container is not running.
Transfer data to your container using scp or sftp;
File sharing is encouraged, access datasets at shared/datasets, access download files at shared/downloads, etc
See GPU load: nvidia-smi.
memory usage: free -h.
disk usage: df -h.
===== main menu =====
[1] start your container # 开机
[2] enter your container # 切换至虚拟机
[3] stop your container # 关机(也可以直接在虚拟机中执行shutdown now)
[4] change your password # 更改密码(如果需要改虚拟机密码,进入虚拟机后执行passwd)
[5] allocate ports # 进行端口映射
[6] release ports # 释放申请的端口
[0] show info # 显示虚拟机运行状态
[x] exit # 退出管理
# 启动虚拟机
Enter your choice: 1
========== Starting your container...
Press any key to continue...