简体   繁体   English

SSH 进入 tutum 节点

[英]SSH into tutum node

I've been trying to SSH into tutum node,我一直在尝试通过 SSH 连接到 tutum 节点,

this approach seems to be pretty straightforward but I keep getting Permission denied (publickey) message. 这种方法似乎非常简单,但我不断收到Permission denied (publickey)消息。

The node is running (pretty much blank) Ubuntu 14.04.该节点正在运行(几乎空白)Ubuntu 14.04。

After few unsucessfull tries, I connected through terminal on Tutum website, installed SSH related packages, inserted my key into .ssh/authorized_keys manually.经过几次不成功的尝试,我通过 Tutum 网站上的终端连接,安装了 SSH 相关软件包,将我的密钥手动插入到.ssh/authorized_keys 中 Still without any luck when trying to connect from my local machine.尝试从我的本地机器连接时仍然没有任何运气。

Thank you for any suggestions.谢谢你的任何建议。

Since you have command line access to the tumtum machine, use this command on the server, to see what your actual errors are when attempting to login to the machine.由于您可以通过命令行访问 tumtum 机器,请在服务器上使用此命令,以查看尝试登录机器时的实际错误。

tail -f /var/log/auth.log

By default, Ubuntu writes all login attempts to that auth.log file and tail -f opens the file and keeps it open.默认情况下,Ubuntu 将所有登录尝试写入该 auth.log 文件,tail -f 打开该文件并使其保持打开状态。 When you attempt to login from your local machine, you should see an informative message on the server, that will let you know exactly what is wrong or at least give a much more informative result, when you search the message in Google.当您尝试从本地计算机登录时,您应该会在服务器上看到一条信息性消息,当您在 Google 中搜索该消息时,它会让您确切地知道出了什么问题,或者至少给出了更多信息性的结果。

Depending on the error message, you may find that your authorized_keys file on the tumtum node may have the wrong permissions, or just be an incomplete key.根据错误信息,你可能会发现你在tumtum节点上的authorized_keys文件可能权限错误,或者只是一个不完整的key。

What command are you using to ssh into the new server?您使用什么命令通过 ssh 进入新服务器? If you followed their guide exactly, make sure you're using the -i flag in the ssh command to specify your private key and not the public one.如果您完全遵循他们的指南,请确保您在 ssh 命令中使用 -i 标志来指定您的私钥而不是公共密钥。 To help clarify, here's a more informative version of their ssh string.为了帮助澄清,这是他们的 ssh 字符串的更多信息版本。

ssh -i /path/to/private_key_file username@server.ip.adress

I've managed to connect using approach mentioned in the guide above in combination with tutum-cli.我已经设法使用上面指南中提到的方法结合 tutum-cli 进行连接。 The command is then然后命令是

tutum container exec container . tutum 容器 exec容器 stack command堆栈命令

Command can be for example /bin/bash命令可以是例如/bin/bash

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM