python - 怎么通过vpn连内网ftp?
黄舟
黄舟 2017-04-18 10:23:20
0
1
715

Debian系统,通过pptp连接了校内vpn,然后在python下用ftplib登录,失败,提示'Invalid IP Address'。

用ifconfig查看,有eth0和eth1还有ppp0(ppp0是我连的vpn),猜想是ftp走的还是外网,不知道怎么让ftp走校内vpn通道?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
巴扎黑

After connecting to VPN, you can only log in to the ftp server if you can ping the intranet ftp. You can try the following command:

ping FTPServerHostOrIP
telnet FTPServerHostOrIP FTPServerPort

FTPServerHostOrIP Actual FTP hostname or IP address
FTPServerPort Actual FTP hostname and port

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template