(login as: ubuntu
Authenticating with public key "imported-openssh-key"
)
登录了cd path/to/my/dev/folder/
chmod 400 JupyterKey.pem
ssh ubuntu@11-111-111 -i JupyterKey.pem
# First attempt
[ec2-user@ip-111-11-11-111 ~]$ cd \Users\pb\Desktop\pYTHON\AWS\server
-bash: cd: UserspbDesktoppYTHONAWSserver: No such file or directory
# Second attempt
[ec2-user@ip-111-11-11-111 ~]$ ssh -i "imported-openssh-key" ubuntu@ec2-54-67-50-191.us-west-1.compute.amazonaws.com
Warning: Identity file imported-openssh-key not accessible: No such file or directory.
The authenticity of host 'ec2-ip-111-11-11-111.us-west-1.compute.amazonaws.com (ip-111-11-11-111)' can't be established.
ECDSA key fingerprint is 11111111111111111111111111111111111111111111111111111.
ECDSA key fingerprint is 11111111111111111111111111111111111111111111111111111.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-11-111-111.us-west-1.compute.amazonaws.com,11-111-1191' (ECDSA) to the list of known hosts.
Permission denied (publickey).
[ec2-user@ip-172-31-28-150 ~]$
答案 0 :(得分:1)
我说Linux Like是因为这适用于Windows以外的几乎所有内容,包括Windows Linux子系统,Mac,任何Unix风格(Linux,BSD等)
使用ssh的更典型方法是在主目录中(可以在大多数类似Linux的系统中使用cd〜进入它)创建一个名为.ssh的目录并将密钥存储在其中,并配置一个文件以了解如何访问它们。
我还相信Windows现在已经提供了本机SSH支持,因此您可能不再需要跳过腻子框架了。
如果密钥文件不在服务器上,则需要使用scp将其复制到Ubuntu服务器上
希望这会有所帮助