Get the App
SLTechnology News&Howtos  ›  Servers  › 

CentOS 6.5 how to quickly experience Ubuntu 14.04 can be logged in by ssh

Shulou Source: shulou.com Published: 2022-06-01 01:59:28 09月22日 Update

This article is about how CentOS 6.5 can quickly experience how Ubuntu 14.04 can log in to ssh. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

All operations are done with root account on CentOS 6.5.If docker is not installed

Use root to execute the following commands in turn

Curl https://git.oschina.net/feedao/Docker_shell/raw/start/ali-centos.sh | shyum-y install docker-io service docker startyum-y install debootstrapdebootstrap-- arch amd64-- include=vim,openssh-server Openssh-client trusty ubuntu-trusty http://mirrors.aliyun.com/ubuntu/cd ubuntu-trusty & & tar-c. | docker import-ubuntu1404-basedocker build-t ubuntu1404-ssh https://git.oschina.net/feedao/Docker_shell/raw/start/trustyDockerfiledocker run-d-p 127.0.0.1 openssh-client trusty ubuntu-trusty 33303 ubuntu-trusty 22 ubuntu1404-ssh

After the previous completion, log in to the container:

Ssh root@127.0.0.1-p 33303

Enter password: 123456

The effect is as follows:

[root@localhost lists] # ssh root@127.0.0.1-p 33303root@127.0.0.1's password: Welcome to Ubuntu 14.04LTS (GNU/Linux 2.6.32-431.11.2.el6.x86_64 x861664) * Documentation: https://help.ubuntu.com/Last login: Fri Apr 18 08:14:45 2014 from 172.17.42.1root@0b26318a0d63:~# cat / etc/issueUbuntu 14.04 LTS\ n\ lroot@0b26318a0d63: ~ # uname-aLinux 0b26318a0d63 2.6.32-431.11.2.el6.x86_64 # 1 SMP Tue Mar 25 19:59:55 UTC 2014 x86 "64 GNU/Linux

As can be seen from the above, the kernel is still CentOS, but the version and software are programmed with ubuntu 14.04.

That seems to be a problem.

Thank you for reading! This is the end of this article on "how to quickly experience Ubuntu 14.04 in CentOS 6.5". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Login experience content more articles good practical kernel just commands containers passwords effects articles versions see knowledge accounts software software programming Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi OPPO Reno macOS NVidia