Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 294

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report