初级问题求帮助,关于路由器和2台电脑的

2013-03-14 00:30:57 +08:00
 chenyaobin7
我有2台电脑,装了路由器,都可以正常上网。一台装了xp ,一台装了ubuntu。xp下载了putty,如何用putty登入另外那台ubuntu?

ubuntu ip:192.168.0.105
xp ip:192.168.0.103

ps:如果我在网吧,下个putty 如何才能访问家里的ubuntu?
2909 次点击
所在节点    Linux
9 条回复
chenyaobin7
2013-03-14 00:36:21 +08:00
在线等答案,老师们,快回复我!
Fteng328
2013-03-14 00:37:47 +08:00
chon
2013-03-14 00:41:51 +08:00
首先ubuntu上需要开启ssh,然后在putty上用192.168.0.105就可以登录ubuntu
如果是在外面,比如网吧,需要知道你家里的IP地址,另外还要在路由器上设置端口映射,将ububtu的ssh端口映射到外网,差不多就是这样。
chenyaobin7
2013-03-14 00:44:16 +08:00
@Fteng328 sudo aptitude install connect-proxy
Edit /etc/ssh/ssh_config to enable SSH via proxy:
sudo echo 'ProxyCommand /usr/bin/connect-proxy -4 -S monproxy.domaine.com:port %h %p' >> /etc/ssh/ssh_config

前面是安装软件 后面connect-proxy -4 -S monproxy.domaine.com:port %h %p' >> /etc/ssh/ssh_config应该怎么改 ?我是初学者
Fteng328
2013-03-14 00:51:56 +08:00
@chenyaobin7 I dont think u need to set up SSH through proxy, try just install ssh: sudo aptitude install SSH

open putty, type in ssh XXX@ip 他会问你密码

大家看一下对不对
chenyaobin7
2013-03-14 00:59:44 +08:00
@Fteng328 cmd ping不通,putty也登不进
Fteng328
2013-03-14 08:28:22 +08:00
@chenyaobin7 我自己的virtual box ubuntu server:
In ubuntu
sudo apt-get install openssh-server

ifconfig: find ip address (for example [inet addr:192.168.1.146])

on putty: username@host name is the ip address found above, it will ask for your password.


PS: if you install Xming and enable x11 fowarding in your putty, u can enjoy GUI control of you ubuntu applications under WinXP
chenyaobin7
2013-03-15 11:35:26 +08:00
@Fteng328 我搞定了 是防火墙的原因 打开ubuntu的22端口即可
zhouyifei021
2013-03-15 11:46:29 +08:00
ddns

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/62860

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX