简体   繁体   English

Rackspace在python中使用Pyrax连接到服务器

[英]Rackspace connecting to a server using Pyrax in python

I have recently started using pyrax , the python binding for the Rackspace API. 我最近开始使用pyrax (Rackspace API的python绑定)。 I have a test account on Rackspace and a server running there. 我在Rackspace上有一个测试帐户,并在该服务器上运行了一个服务器。 Using my username and api_key I can authenticate and list all the servers found in that region. 使用我的用户名和api_key,我可以验证并列出在该区域中找到的所有服务器。

How do I connect to a particular server given its name, server id, IPv4 address, IPv6 address, flavor etc.? 给定特定服务器的名称,服务器ID,IPv4地址,IPv6地址,风味等,如何连接到该服务器?

Pyrax is specifically used to interact with the Rackspace Cloud API in provisioning the resources. 在供应资源中,Pyrax特别用于与Rackspace Cloud API进行交互。

A different library would be required if you wanted to connect to the server via SSH. 如果要通过SSH连接到服务器,则需要使用其他库。 Check out something like http://www.lag.net/paramiko/ 查看类似http://www.lag.net/paramiko/的内容

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

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