This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 请教大虾一个问题:两局域网中机器如何在命令行方式下建立ssh或ftp连接?一台局域网中的机器如何在命令行方式下建立与另一局域网内机器的SSH或FTP连接?
假设两者firewall都disable了
例如ISP给我cable modem分配的ip是64.59.144.40; cable modem连接router,router的IP是192.168.123.1;我的机器连接在router上,分配的IP是192.168.123.145。Mask是255.255.255.0
想连接另一台机器,在另一个城市,组网方式类似,ISP给他cable modem分配IP是70.68.27.110,同样的router配置,他的机器局域网IP是192.168.123.169
能否且如何在命令行方式下建立连接?
我是白痴,恳请大虾指教,给出命令组及需要对配置进行的更改
-xxjjs(东方射日);
2004-10-24
{504}
(#1945834@0)
-
like thison router 192.168.123.1, configure the port forwarding port 21(ftp)/22(ssh) to your STATIC client ip 192.168.123.145.
you do the same thing on another router.
configure your client ip static.
as i know, windows doesn't come with a ssh server, you need install a ssh server on the computer you want to connect to.
putty is best free ssh client you can find in internet.
-redspider(忙啥!歇着吧!);
2004-10-24
{375}
(#1946439@0)
-
Thanks, But I mean in UNIX/Linux
-xxjjs(东方射日);
2004-10-25
(#1946990@0)
-
my suggestion is good for Unix/Linux as for windows.except linux comes with ssh/ftp server installed.
-redspider(忙啥!歇着吧!);
2004-10-25
{49}
(#1947643@0)
-
xxjjs, this is not ssh or ftp problem. Setup NAT on your route, such as 22 port on router was forward to internal IP 192.168.1.3, then when you use ssh <route_ip> it will automatically forward to internal host ;)
-nohairmonk(无毛和尚);
2004-10-31
(#1957220@0)
-
在70.68.27.110上把Port22 map到192.168.123.169的Port 22上去,然后在192.168.123.1上运行ssh 70.68.27.110
-pasu(InTheSky);
2004-10-31
(#1957380@0)