首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何通过安全shell连接到codeanywhere ide?

如何通过安全shell连接到codeanywhere ide?
EN

Stack Overflow用户
提问于 2015-11-22 16:31:40
回答 2查看 6.8K关注 0票数 0

我在windows上安装了适用于chrome的Secure Shell扩展。谁能告诉我如何使用这个安全的shell扩展在codeanywhere中连接到我的devbox?

感谢你所有的帮助

EN

回答 2

Stack Overflow用户

发布于 2016-09-27 12:35:21

为了使用Chrome Secure Shell连接到您的CodeAnywhere容器,您需要:

  • 容器的主机名和端口。(您可以通过右键单击您的容器,选择信息,并查找SSH访问information.)
  • The用户名将是cabox。[1]

您还需要私钥和公钥才能将身份导入到Chrome Secure Shell中。[2]

  • 容器的私钥存储在/home/cabox/.ssh/id_rsa中,公钥存储在/home/cabox/.ssh/id_rsa.pub

代码语言:javascript
复制
- Since the `/home/cabox/.ssh/` folder is not visible in the left-hand menu, open an SSH terminal to your container. (Right-click your container, then choose SSH Terminal.)
- At the prompt, type `cp ../.ssh/id_rsa .` to copy the private key to the workspace folder.
- At the prompt, type `cp ../.ssh/id_rsa.pub .` to copy the public key to the workspace folder.
- Right-click your container, and click Refresh to refresh the list of files
- Download the `id_rsa` and `id_rsa.pub` files (which should now be visible on the left-hand menu) by right-clicking and choosing Download

在Chrome Secure Shell中,

  • 为连接指定一个名称并使用用户名cabox
  • 填写主机名和端口
  • 在Identity旁边,单击Import。当文件选择屏幕打开时,选择 id_rsaid_rsa.pub files
  • 导入身份后,您应该能够连接到CodeAnywhere容器。
票数 1
EN

Stack Overflow用户

发布于 2016-03-01 21:32:53

我对chrome上的ssh扩展一无所知,但首先你必须在你的devbox上安装一个ssh服务器。如果你的devbox是ubuntu,你应该在你的codeanywhere ssh终端上尝试这样做:

代码语言:javascript
复制
    sudo apt-get install openssh-server

然后在devbox机器上检查你的ip地址:

代码语言:javascript
复制
    ifconfig

命令。最后,通过以下方式从您的chrome扩展ssh连接到您的devbox:

代码语言:javascript
复制
    ssh yourUsernameFromDevbox@devboxIP

之后,您只需插入您的devbox机器密码,就可以了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33852962

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档