我无法通过我的大学代理连接到我的AWS EC2实例。但是,它使用非代理连接时连接。错误如下:通过大学代理连接到AWS实例时出错
$ ssh -i .ssh/aws-key-fast-ai.pem [email protected]*----.us-west-2.compute.amazonaws.com -vvv
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ________.us-west-2.compute.amazonaws.com [34.208.50.122] port 22.
debug1: connect to address *.*.*.* port 22: Connection refused
ssh: connect to host *-*-*-*-*.us-west-2.compute.amazonaws.com port 22: Connection refused
错误说“连接被拒绝”。它要花很长时间才能失败,还是立即失败?如果需要很长时间,那么原因通常是安全组设置不允许连接。如果它立即失败,那么这表明您正在使用不正确的用户名或'.pem'文件。 –
立即失败。当我使用非代理连接时,它完美连接。那么.pem文件如何不正确? –
你是否从同一台电脑连接,使用完全相同的命令行?也就是说,除了你正在使用大学代理外,绝对一切都是一样的?如果是这样,“通过我的大学代理”是什么意思?有什么不同吗? (例如,不同的网络,某处的某种配置?) –