Chinaunix首页 | 论坛 | 博客
  • 博客访问: 107625
  • 博文数量: 20
  • 博客积分: 1910
  • 博客等级: 上尉
  • 技术积分: 485
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-10 15:46
文章分类

全部博文(20)

文章存档

2013年(3)

2012年(4)

2011年(10)

2010年(1)

2009年(2)

我的朋友

分类: LINUX

2012-08-21 12:23:14

SSH server hasn't been installed by Ubuntu Linux by default. If you want to use SSH remote connect to your Ubuntu Linux, you should install SSH server manually.

To check if SSH server is installed or not:
$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
The above output means that there is no SSH server installed.

To install SSH server:
$ sudo apt-get install openssh-server
The SSH service will be started automatically.

The following command check if SSH server started or not:
$ ps -e|grep ssh
 606 ?        00:00:00 sshd
That means SSH server is started.

The default port for SSH server is 22, which can be updated in /etc/ssh/sshd_config.




阅读(278) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~