ubuntu10.04 SSH 开启
来源:互联网 发布:混合高斯模型算法原理 编辑:程序博客网 时间:2024/06/05 02:12
$ sudo aptitude install openssh-server
2. 启动ssh-server。
$ /etc/init.d/ssh restart
3. 确认ssh-server已经正常工作。
$ netstat -tlp
tcp6 0 0 *:ssh *:* LISTEN -
看到上面这一行输出说明ssh-server已经在运行了。
setp1:
检查是否安装了ssh
命令:
dpkg --list|grep ssh
出现:
ii libssh-4 0.4.2-1ubuntu1 A tiny C SSH library
ii openssh-client 1:5.3p1-3ubuntu4 secure shell (SSH) client, for secure access
ii openssh-server 1:5.3p1-3ubuntu4 secure shell (SSH) server, for secure access
ii ssh-askpass-gnome 1:5.3p1-3ubuntu4 interactive X program to prompt users for a
如果有openssh-client 和openssh-server 则是已安装
如果没有安装,可输入以下命令:
sudo apt-get install openssh
step2:检测是否启动ssh
命令:
ps -ef|grep ssh
出现:
root 684 1 0 22:40 ? 00:00:00 /usr/sbin/sshd
frankwoo 2329 2285 0 22:43 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session gnome-session
root 31254 684 0 23:49 ? 00:00:00 sshd: root@pts/2
root 31408 31341 0 23:58 pts/2 00:00:00 grep --color=auto ssh
如果有ssh字眼,则表明已启动。
如果没有启动,输入以下命令:
/etc/init.d/ssh start
启动后出现:
* Starting OpenBSD Secure Shell server sshd [ OK ]
表明启动成功
step3:在Windows环境下,使用putty或secureCRT连接测试
我这里用的是secureCRT。
因为要输入IP。这里我在ubuntu里输入命令:
ifconfig
因为是使用虚拟机VMware,并以UAT方式连接,因此只需看eth0这部分,命令输入后找到inet字眼,后面的IP就是你在secureCRT新建的connection里需要输入的IP。
使用 SSH 远程连接运行图形界面程序
配置允许X11转发
代码:sudo gedit /etc/ssh/ssh_config ## 设置选项
ForwardAgent yes ##
ForwardX11 yes ##
ForwardX11Trusted yes ## 这个要设置,上面二项可以不要
连接代码:
ssh -X 用户名@服务器IP "程序名" ## 直接运行一个程序
ssh -X 用户名@服务器IP # 或 先登陆再运行程序
然后用ssh登录后,就可以为了。注意服务端的sshd要重启,在服务器运行的图形界面软件全部都使用服务器的文件,不要搞错了。
- ubuntu10.04 SSH 开启
- ubuntu10.04 SSH 开启
- Ubuntu10.10 开启ssh服务
- ubuntu10.04安装SSH
- ubuntu10.04配置ssh
- ubuntu10.04开启root登陆
- ubuntu10.04开启root登陆
- ubuntu10.04开启root登陆
- Ubuntu10.04配置Ssh服务
- [转] ubuntu10.04开启root登陆
- ubuntu10.04开启framebuffer(转)
- Ubuntu - 开启root登陆Ubuntu10.04
- Ubuntu12.04 开启ssh
- ubuntu14.04开启ssh
- ubuntu16.04开启ssh
- Ubuntu12.04 开启ssh+win7 ssh登录
- Ubuntu14.04开启SSH服务
- Ubuntu14.04开启SSH服务
- The Hamming Distance Problem-uva
- Markdown Linux
- linux 命令快捷键
- 02字串2
- linux下安装apache
- ubuntu10.04 SSH 开启
- 关于UITabBar 显示图片的问题
- 岁月的沧桑,沧桑了谁的容颜?
- JSON资料整理
- NYOJ590 相同的和
- 测试人的家-各种测试资源汇集
- Centos6.5 安装 gitlab
- ubuntu 10.04 关闭 防火墙
- hadoop1.2.1安装配置