Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic。
7年前关闭。
Improve this question
我正在尝试在Amazon云上创建一个简单的Web服务器。但是,每次断开连接后,每次安装apache时,我都无法再通过SSH重新登录到服务器。
Apache中是否有需要更改的设置? 确保sshd服务仍在您的实例上运行。重新启动可能会有所帮助。 也许您最初将ssh配置更改为使用端口80而不是端口22(这是某些人为绕过公司防火墙所做的工作)。 Apache现在可能会阻止它。 您能否检查AWS实例的安全组(防火墙配置)是否允许在端口22进行SSH访问?
想改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic。
7年前关闭。
Improve this question
我正在尝试在Amazon云上创建一个简单的Web服务器。但是,每次断开连接后,每次安装apache时,我都无法再通过SSH重新登录到服务器。
djc@ubuntu:~/Desktop$ ssh -v -i lobbymonitor2.pem ec2-user@ec2-23-20-4-255.compute-1.amazonaws.com
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ec2-23-20-4-255.compute-1.amazonaws.com [23.20.4.255] port 22.
debug1: connect to address 23.20.4.255 port 22: Connection refused
ssh: connect to host ec2-23-20-4-255.compute-1.amazonaws.com port 22: Connection refused
Apache中是否有需要更改的设置?
最佳答案
我将通过以下步骤对其进行调试:
关于apache - 在AWS Server上安装Apache之后,我将无法再进行SSH ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16287562/