Sign inSign up

softlang/ubuntu-ssh

By softlang

•Updated over 5 years ago

ubnutu-ssh

Image
1

672

softlang/ubuntu-ssh repository overview

⁠软语 softlang.net,专注于开源技术
  1. 此镜像基于官方【ubuntu:bionic】镜像构建,在官方镜像基础上安装了OpenSSH以及常用工具,安装指令如下:

  2. 镜像大小:87.25 MB

  3. 如何通过此镜像启动容器?

# 在安装有Docker引擎的服务器上运行
docker run -d --name uban2 --hostname my-uban2 -p 9022:22 softlang/ubuntu-ssh:latest
  1. 如何ssh登录到此容器?
# 登录到容器,修改密码,默认=softlan9
docker exec -it 容器名/ID /bin/bash
passwd

# 退出容器 exit
# ssh 登录到 centos
ssh root@localhost -p 8022

Tag summary

Content type

Image

Digest

Size

90.1 MB

Last updated

over 5 years ago

docker pull softlang/ubuntu-ssh