在Ubuntu 桌面版 12.04 LTS安装并运行SSH

本文介绍如何在Ubuntu系统中安装并配置SSH服务,包括安装openssh-server、检查ssh服务状态、重启服务以及通过SecureCRT进行远程登录验证。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一步:安装openssh-server

#sudo apt-get install openssh-server

第二步:查看ssh服务是否已经运行,执行

#ps -e | grep ssh

执行完后可以看到ssh-agent和sshd都运行了。

第三步:重启shh服务

#service sshd restart

第四步:从别的机器上用secureCRT登录Ubundu机器,输入用户名密码,终端显示:

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/


The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

hy@hy-Aspire-SA10:~$ pwd
/home/hy

这说明SSH服务已经成功了。

至此全文结束,有问题还望您提出。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值