SSH funciona no Windows Virtual Machine, mas não em máquinas nativas do Ubuntu

0

Eu tenho que conectar a um servidor Linux através de uma VPN para a escola. Eu sou capaz de se conectar via Putty através do meu Windows Virtual Machine, e eu também pode se conectar à VPN (Cisco AnyConnect), mas não consigo conectar na minha máquina Ubuntu original. A VPN é bem sucedida via meu terminal, só que não é ssh. Eu tento pingar o servidor, e ele apenas fica lá. Quando eu tento ssh no servidor, recebo "Connection Timed Out".

O que está me impedindo de me conectar se posso fazer isso na minha VM? Alguma sugestão?

Nota : deixei nomes reais e IPs fora.

Aqui está minha saída ao se conectar à VPN:

christopher@HAL:~$ sudo openconnect -s /etc/vpnc/vpnc-script https://secureconnect.some_university.edu
[sudo] password for christopher: 
POST https://secureconnect.some_university.edu/
Attempting to connect to server xx.xx.xx.xx:443
SSL negotiation with secureconnect.some_university.edu
Connected to HTTPS on secureconnect.some_university.edu
Got HTTP response: HTTP/1.0 302 Object Moved
GET https://secureconnect.some_university.edu/
Attempting to connect to server xx.xx.xx.xx:443
SSL negotiation with secureconnect.some_university.edu
Connected to HTTPS on secureconnect.some_university.edu
Got HTTP response: HTTP/1.0 302 Object Moved
GET https://secureconnect.some_university.edu/+webvpn+/index.html
SSL negotiation with secureconnect.some_university.edu
Connected to HTTPS on secureconnect.some_university.edu
Please enter your username and password.
GROUP: [xxxxx]:xxxxx <-- leaving name out
Please enter your username and password.
Username:<my_username>
Password:xxxxxxxxx   
POST https://secureconnect.some_university.edu/+webvpn+/index.html
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 20
/bin/sh: 1: /etc/vpnc/vpnc-script: not found
Script '/etc/vpnc/vpnc-script' returned error 127
/bin/sh: 1: /etc/vpnc/vpnc-script: not found
Script '/etc/vpnc/vpnc-script' returned error 127
Connected tun0 as 192.168.30.106, using SSL
Established DTLS connection (using GnuTLS). Ciphersuite (DTLS0.9)-(RSA)-(AES-256-CBC)-(SHA1).

Aqui está minha tentativa de ssh no servidor uma vez conectado à VPN:

christopher@HAL:~$ ssh -v xxxxxxx.some_university.edu
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for xxxxxxx.some_university.edu
debug1: Connecting to uisacad.uis.edu [xxx.xxx.xxx.xxx] port 22.
debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection timed out
ssh: connect to host xxxxxxx.some_university.edu port 22: Connection timed out
    
por IRGeekSauce 28.01.2017 / 02:49

1 resposta

0

A resposta estava bem na minha frente o tempo todo! Estas linhas aqui:

/bin/sh: 1: /etc/vpnc/vpnc-script: not found <-- realized it here
Script '/etc/vpnc/vpnc-script' returned error 127 
/bin/sh: 1: /etc/vpnc/vpnc-script: not found
Script '/etc/vpnc/vpnc-script' returned error 127

Eu executei "locate vpnc-script" e descobri que, por algum motivo, ele estava em / usr / share / vpnc / quando eu o instalei. Então, eu fiz um mkdir / etc / vpnc e movi tudo dentro de / usr / share / vpnc para lá, mudei as permissões apropriadas, e voila! Funciona! Eu ssh'd no servidor e ligado imediatamente! Isso tornará as coisas muito mais fáceis porque eu estava cansado de usar minha máquina virtual.

    
por IRGeekSauce 30.01.2017 / 07:44