2013-11-10 43 views
0

我想在週末完成一些工作,並希望階段一些東西。我可以在辦公室精細部署,但是當我運行帽從家裏我收到以下錯誤部署:帽部署工作從辦公室,但不是從家庭網絡

權限被拒絕(公鑰)

如果在辦公室裏我的公鑰的作品不應該也工作?我也檢查了我們託管的任何防火牆策略。

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 
debug1: Reading configuration data /etc/ssh_config 
debug1: /etc/ssh_config line 20: Applying options for * 
debug1: Connecting to **.***.***.** [**.***.***.**] port 22. 
debug1: Connection established. 
debug1: identity file /Users/*******/.ssh/id_rsa type 1 
debug1: identity file /Users/*******/.ssh/id_rsa-cert type -1 
debug1: identity file /Users/*******/.ssh/id_dsa type -1 
debug1: identity file /Users/*******/.ssh/id_dsa-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_6.2 
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-3ubuntu1 
debug1: match: OpenSSH_6.0p1 Debian-3ubuntu1 pat OpenSSH* 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-ctr hmac-md5 none 
debug1: kex: client->server aes128-ctr hmac-md5 none 
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
debug1: Server host key: RSA *********************************** 
debug1: Host '**.***.***.**' is known and matches the RSA host key. 
debug1: Found key in /Users/*******/.ssh/known_hosts:5 
debug1: ssh_rsa_verify: signature correct 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: SSH2_MSG_NEWKEYS received 
debug1: Roaming not allowed by server 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey,password 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /Users/*******/.ssh/id_rsa 
debug1: Authentications that can continue: publickey,password 
debug1: Trying private key: /Users/*******/.ssh/id_dsa 
debug1: Next authentication method: password 
+0

我有這個時,我需要添加SSH密鑰,重新啓動後或類似的東西。你嘗試過'ssh-add〜/ .ssh /'嗎? – CDub

+0

不,這似乎沒有幫助 – isea

+0

它幾乎聽起來像是從你的辦公室有一個代理SSH通過辦公室從外面不存在...你可以直接SSH到盒子,也許使用'-v'詳細輸出? – CDub

回答

0

很多谷歌搜索後...檢查了這一點:https://bbs.archlinux.org/viewtopic.php?id=135000

TL; DR - 我猜你的機器被分配服務器識別,然後允許驗證主機名。當您在家庭網絡中時,您可能會分配一些與服務器無法識別的內容不同的內容,因此不允許您訪問。

我在日誌文件中鍵入過這行:debug1: Roaming not allowed by server

在連接到上面的線索,這聽起來像一個類似的問題,一個人能夠通過時,更新他們的機器的主機名,以解決他們的問題,他們的家庭網絡。可能值得一試。