我已经在Fedora 17 Linux终端上成功地将VPNed发送到了我的大学服务器。
$ sudo openconnect -u UNIVERSITY_USERNAMEID sslvpn.nameofuniversity.edu
[sudo] password for PCUSERNAME:
Attempting to connect to xxx.xxx.xxx.xxx:xxx
SSL negotiation with sslvpn.nameofuniversity.edu
Connected to HTTPS on sslvpn.nameofuniversity.edu
GET https://sslvpn.nameofuniversity.edu/
Got HTTP response: HTTP/1.0 302 Object Moved
SSL negotiation with sslvpn.nameofuniversity.edu
Connected to HTTPS on sslvpn.nameofuniversity.edu
GET https://sslvpn.nameofuniversity.edu/+webvpn+/index.html
Please enter your username and password.
Password:
POST https://sslvpn.nameofuniversity.edu/+webvpn+/index.html
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 0
Connected tun0 as xxx.xx.xx.xx, using SSL在此之后,我打开了一个新的终端,并执行了一个ssh命令,该命令通常在我在校园时工作。我在终端上得到以下输出:
# ssh -vvv -Y UNIVERSITY_USERNAMEID@server
OpenSSH_5.9p1, OpenSSL 1.0.0j-fips 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to server [xxx.xxx.xx.xx] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host没有效果,我在文件/etc/hosts.allow中附加了以下内容
SSHD: ALL
SSHD: .nameofuniversity.edu : all
SSHD: ipaddress : all这里有什么问题吗?
发布于 2012-08-24 07:10:54
其中两种可能性是:
我已经在我工作的大学的许多机器上配置了后者(以及在我的家用机器和其他几台机器上)--这是一种方便的方式,可以允许远程ssh访问用户,而不会使主机容易受到攻击ssh端口的脚本的持续攻击。用户可以在校园内设置公钥访问,并使用它从家中(或会议或其他)连接。
发布于 2012-08-29 05:52:55
所以这是正式的。Linux管理员透露,自从我申请了一个学期的假期后,我的学生边界VPN访问权限就被取消了。我猜我的特权在我发布这个问题后被改变了,因为在发布之前,我能够到VPN,但只是不能SSH。
https://unix.stackexchange.com/questions/46224
复制相似问题