本文小编为大家详细介绍“ubuntu伪分布式怎么配置”,内容详细,步骤清晰,细节处理妥当,希望这篇“ubuntu伪分布式怎么配置”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。
ubuntu伪分布式的配置示例:
1.安装“ssh server”。
2.再安装“sun jdk6”,必须要java6及其以上版本。
3.生成SSH证书,配置SSH加密key,操作步骤:
www@ubuntu:~$ su – www
Password:
www@ubuntu:~$ ssh-keygen -t rsa -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/www/.ssh/id_rsa):
Your identification has been saved in /home/www/.ssh/id_rsa.
Your public key has been saved in /home/www/.ssh/id_rsa.pub.
The key fingerprint is:
a8:67:6f:bd:04:13:41:5f:a7:13:2d:84:e7:8a:8c:43 www@ubuntu
The key's randomart image is:
+–[ RSA 2048]—-+
| .o o+.. |
| o..o+. |
| . .oo. |
| E. . .. |
| ..oS. . |
| .o oo. |
| . o. .. |
| o …. |
| .. .. |
+—————–+
www@ubuntu:~$
www@ubuntu:~$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
www@ubuntu:~$
4.配置完成后,可以测试一下,例如:
www@ubuntu:~$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is d7:87:25:47:ae:02:00:eb:1d:75:4f:bb:44:f9:36:26.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Linux ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS
[...snipp...]
www@ubuntu:~$
读到这里,这篇“ubuntu伪分布式怎么配置”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。