ubuntu安装SSH服务
在ubuntu中简单安装运行SSH服务。
SSH程序有客户端openssh-client和服务端openssh-server
想登陆别的电脑SSH,只需安装openssh-client,ubuntu有默认安装。
安装openssh-client:
sudo apt-get install openssh-client
要让本机开放SSH服务就需要安装openssh-server:
sudo apt-get install openssh-server
查看sshserver是否运行:
ps -e |grep ssh
运行sshserver:
sudo /etc/init.d/ssh start
ssh-server配置文件位于/etc/ssh/sshd_config,可以自定义SSH的服务端口。
默认端口是22,自定义端口后需重启SSH服务:
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start
登陆SSH:
ssh username@localhost
username为localhost机器上的用户,需要输入密码。
断开连接:
exit
参考资料:
http://www.searu.org/ubuntu_s_ssh.html
http://www.cnblogs.com/chen1987lei/archive/2010/12/02/1894768.html
1、以专家为榜样,不必自己重新探索
2、解构技能,找出实现80%效果的那20%
3、不要一心二用
4、练习练习再练习!然后获得即时反馈
5、坚持,不要在低谷期放弃
2、解构技能,找出实现80%效果的那20%
3、不要一心二用
4、练习练习再练习!然后获得即时反馈
5、坚持,不要在低谷期放弃
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步