2016-04-09 25 views
0

Tarayıcıdan erişebileceğim bir iPython yüklemesi var."İzin reddedildi (publickey)." Amazon EC2'ye SSH'ye çalışırken

Ben yeni anahtarlar Mevcut .pem anahtarı kullanarak, hem tarafından üretilmesi denedi
Permission denied (publickey). 

, hiçbir şey hala çalıştı: Gerçi EC2 örneğine ssha çalıştığınızda , aşağıdaki hatayı alıyorum. Bunlar takip adımlar şunlardır:

  1. $ chmod 700 ~/.ssh
  2. cp ~/masa/aws/ipython.pem ~/.ssh/ipython.pem
  3. chmod 600 ~/ssh komutu "ssh -i ~/.ssh/ipython.pem çalışan Açık .ssh/ipython.pem
  4. ssh -i ~/.ssh/ipython.pem [email protected]

[email protected] -v ", aşağıdaki yanıtı alıyorum:

OpenSSH_6.9p1, LibreSSL 2.1.8 
debug1: Reading configuration data /Users/coffeeman/.ssh/config 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 20: Applying options for * 
debug1: /etc/ssh/ssh_config line 102: Applying options for * 
debug1: Connecting to 50.174.xx.xx [50.174.xx.xx] port 22. 
debug1: Connection established. 
debug1: key_load_public: No such file or directory 
debug1: identity file /Users/coffeeman/.ssh/ipython.pem type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /Users/coffeeman/.ssh/ipython.pem-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_6.9 
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 pat OpenSSH_6.6.1* compat 0x04000000 
debug1: Authenticating to 50.174.xx.xx:22 as 'ubuntu' 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client [email protected] <implicit> none 
debug1: kex: client->server [email protected] <implicit> none 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:uBRsbvwsIcqNN7vUfzpIXd6n7W5cpyGyU0DutxEHJE8E 
debug1: Host '50.174.xx.xx' is known and matches the ECDSA host key. 
debug1: Found key in /Users/coffeeman/.ssh/known_hosts:10 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: SSH2_MSG_NEWKEYS received 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /Users/coffeeman/.ssh/id_rsa 
debug1: Authentications that can continue: publickey 
debug1: Trying private key: /Users/coffeeman/.ssh/ipython.pem 
debug1: Authentications that can continue: publickey 
debug1: No more authentication methods to try. 
Permission denied (publickey). 

Neyi yanlış yapıyorum?

+1

İzinleriniz gayet iyi. Ubuntu örneğini oluşturmak için hangi anahtar kullanıldı? – tedder42

+0

Açıkçası, örneği başlatmak için 'ipython' tuşunu kullanmadınız. – helloV

+0

AWS'nin kendisinden indirdiğim ipython.pem adlı aynı anahtar. – user2762934

cevap

0

EC2 örneğini oluşturmak için bu anahtarı kullanmadığınız anlaşılıyor. İşte Launch an instance üzerinde

  • tıklayın EC2 konsoluna o

    • Git yapmak ve vb OS, örnek türünü, nasıl seçeceğiniz
    • Bu pencerede

    enter image description here

    alacak
    • Seçenek listesinden Create a new key pair'u seçin ve bir ad verin, örneğin
    • tıklayın

      ssh -i ~/.ssh/ipython.pem your-ip

    Ve her şey olması gerektiği kullanarak SSH üzerinden ~/.ssh/ipython.pem

  • örneğine
  • Bağlan saklayın bu

  • Download keypair üzerinde ipython ince! :)

  • İlgili konular