当我尝试从Mac连接到远程桌面时,我收到以下错误消息:
$ ssh -vvvv john@dev-dsk-john.com
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/john/.ssh/config
debug1: /Users/john/.ssh/config line 26: Applying options for *
debug1: /Users/john/.ssh/config line 40: Applying options for dev-dsk*.amazon.com
debug1: /Users/john/.ssh/config line 165: Applying options for *.us-east-*.amazon.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/ssh_mux_dev-dsk-john.com_22_john" does not exist
debug2: resolving "dev-dsk-john.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to dev-dsk-john.com [10.1.133.160] port 22.
debug1: connect to address 10.1.1.1 port 22: Operation timed out
ssh: connect to host dev-dsk-john.com port 22: Operation timed out
连接挂起“debug1:正在连接到dev-dsk-john.com [10.1.133.160]端口22。”
它在三天前工作。
系统显示主机仍处于活动状态,因此我非常确定计算机仍然处于开机状态。
答案 0 :(得分:0)
我有类似的错误,请尝试在@Configuration
@ComponentScan(basePackages = "com.dateup")
@EnableSolrRepositories(basePackages = {"com.dateup.repositories.solr"}, multicoreSupport = true)
public class SearchContext {
}
处更改您的权限,这些是系统范围的。如果他们不是644 ec2不接受连接。您的.pem键也是如此
看看Trying to SSH into an Amazon Ec2 instance - permission error
答案 1 :(得分:0)
我今天遇到了同样的问题,最终设法修复了它。
我首先验证控制套接字确实不存在。我的路径是“/home/ethan/.ssh/controlmasters/ethan@a.b.c.d:22”,但这并不存在。
然后我像ssh一样运行ssh:
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("views/homePage.fxml"));
primaryStage.setTitle("Resizing");
primaryStage.setScene(new Scene(root, 750, 601));
primaryStage.setResizable(false);
primaryStage.show();
}
现在,它连接并创建控件套接字。随后,我可以打开另一个ssh,这不需要密码,事情正常。