您的位置:首页 > 运维架构 > Linux

linux与win7互相远程登录

2015-07-11 15:23 651 查看
一、1.linux远程登录win7
注意:登陆前确认win7已开启允许远程登陆,win7当前用户必需设置密码。

使用ubuntu下自带的tsclient就可以实现远程登陆(类似xp远程连接桌面)。

$ tsclient

或者 在应用程序->ts,也可以直接找到

二、在xp/win7环境下使用Putty远程登录

Ubuntu随着Linux在服务器端应用的普及,Linux系统管理越来越依赖于远程。在各种远程登录工具中,Putty是出色的工具之一。

Putty是一个免费的、Windows 32平台下的telnet、rlogin和ssh客户端,但是功能丝毫不逊色于商业的telnet类工具。

下面是各个步骤:

1.xp/win7下载Putty,可以在华军等软件站下,非常小,几百kb;
2.Ubuntu11.04系统需要开启ssh服务,若不太着急,可忽略以下前两步。
1) 首先备份自带的源: sudo cp/etc/apt/sources.list/etc/apt/sources.list_backup
2) 然后修改源: sudo gedit/etc/apt/sources.list
选择较快的源,替换原来的内容,保存。【清华的源,见最后】
3) 更新软件包列表: sudo apt-get update
4) 安装、配置、开启ssh服务sudo apt-getinstall openssh-server
Ubuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。
5) 然后确认sshserver是否启动了:ps -e |grep ssh
如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh restart,如果看到sshd那说明ssh-server已经启动了。
另一种测试方式, sshlocalhost
6) 再废话一句。ssh-server配置文件位于/etc/ssh/sshd_config,在这里可以定义SSH的服务端口,默认端口是22,你可以自己定义成其他端口号。为了更安全,建议更改端口,然后重启SSH服务。(见《配置Linux服务器SSH安全访问的四个小技巧》)
3.Xp/win7下远程登录ubuntu



输入用户名和密码即可。



三、ubuntu连接linux

远程连接Linux方法比较多,一般可以分为两类:一种是字符界面(SSH)。一种是图形化界面(VNC/XDMCP)。

连接字符界面比较简单,现在的Linux发行版基本上都带有SSH,直接使用命令就可以远程连接linux了。

ssh user@IP

---------------------------ubuntu11.04源(清华校内)--------------------

debhttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty main restricteduniverse multiverse
debhttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-backports mainrestricted universe multiverse
debhttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-proposed mainrestricted universe multiverse
debhttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-security mainrestricted universe multiverse
debhttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-updates mainrestricted universe multiverse
deb-srchttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty main restricteduniverse multiverse
deb-srchttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-backports mainrestricted universe multiverse
deb-srchttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-proposed mainrestricted universe multiverse
deb-srchttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-security mainrestricted universe multiverse
deb-srchttp://mirrors.4.tuna.tsinghua.edu.cn/ubuntu/ natty-updates mainrestricted universe multiverse
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: