初级问题求帮助,关于路由器和2台电脑的 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
chenyaobin7
V2EX    Linux

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

  •  
  •   chenyaobin7 2013-03-14 00:30:57 +08:00 3462 次点击
    这是一个创建于 4664 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我有2台电脑,装了路由器,都可以正常上网。一台装了xp ,一台装了ubuntu。xp下载了putty,如何用putty登入另外那台ubuntu?

    ubuntu ip:192.168.0.105
    xp ip:192.168.0.103

    ps:如果我在网吧,下个putty 如何才能访问家里的ubuntu?
    9 条回复    1970-01-01 08:00:00 +08:00
    chenyaobin7
        1
    chenyaobin7  
    OP
       2013-03-14 00:36:21 +08:00
    在线等答案,老师们,快回复我!
    chon
        3
    chon  
       2013-03-14 00:41:51 +08:00 via Android   1
    首先ubuntu上需要开启ssh,然后在putty上用192.168.0.105就可以登录ubuntu
    如果是在外面,比如网吧,需要知道你家里的IP地址,另外还要在路由器上设置端口映射,将ububtu的ssh端口映射到外网,差不多就是这样。
    chenyaobin7
        4
    chenyaobin7  
    OP
       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
        5
    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
        6
    chenyaobin7  
    OP
       2013-03-14 00:59:44 +08:00
    @Fteng328 cmd ping不通,putty也登不进
    Fteng328
        7
    Fteng328  
       2013-03-14 08:28:22 +08:00   1
    @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
        8
    chenyaobin7  
    OP
       2013-03-15 11:35:26 +08:00
    @Fteng328 我搞定了 是防火墙的原因 打开ubuntu的22端口即可
    zhouyifei021
        9
    zhouyifei021  
       2013-03-15 11:46:29 +08:00 via iPhone
    ddns
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2308 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 15:55 PVG 23:55 LAX 07:55 JFK 10:55
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86