Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Oct 01, 2011 9:45 am 
Offline
Senior Newbie

Joined: Tue Sep 06, 2011 6:21 am
Posts: 8
Hi,

I just wanted to do a script that get's a linode label and SSH's into the lish console with LINODE_ID@fremontHOST_ID.linode.com , but I saw that the linode.list method doesn't respond with the host of the linode.

If possible, that would be a great feature :)

Thanks,
Bar.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 10:47 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You can use linode.ip.list to get both the IP address and reverse DNS hostname (for each IP) of that linode. Get the linode ID from linode.list.

http://www.linode.com/api/linode/linode.ip.list


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 11:04 am 
Offline
Senior Newbie

Joined: Tue Sep 06, 2011 6:21 am
Posts: 8
How does the RDNS or the IP address helps to connect to the Lish SSH?

I believe I need the linode ID (which I have), and the host itself (fremont383 for example), which I don't have (and this is my feature request :)).


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 12:04 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
The host is only useful if you want to use lish, and that's only for emergencies anyhow. There's no reason to use lish over SSH if you can SSH directly to your linode.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 12:18 pm 
Offline
Senior Newbie

Joined: Tue Sep 06, 2011 6:21 am
Posts: 8
Correct.

My feature request is for emergency use. A script that will query the API and SSH via Lish on emergencies, so I won't have to go into the Linode Manager (sometimes it's hard, for example from a mobile device).

Just a feature request, that's all :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group