Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 25, 2011 4:32 pm 
Offline
Newbie

Joined: Tue Jul 12, 2011 2:00 pm
Posts: 4
Hi -
I've got a linode 512, running Ubuntu 10.04. It's up and running and I can login via the ajax ssh console no problem.
However, I start running into problems when I try to change the eth0 adapter from dhcp to static and/or connect to my linode via ssh.

leaving the /etc/network/interfaces file to dhcp, I get a valid IP, and can ping/ssh out. When I try to ssh in from my mac, I immediately, get the "permission denied (publickey)" message.
I checked my sshd_config file, and added:
Code:
PasswordAuthenticationyes                                                              
PermitRootLogin yes                   
ChallengeResponseAuthentication no

And confirmed that port 22 was set.

Any ideas whats going on?

Secondly, how do I go about enabling a static IP address? I followed the Linode guide, and changed my /etc/network/interfaces file to read static rather than dhcp, and I added addresses for my IP, Gateway and Netmask. But when I restarted the network service, I could not ping out to any ip address aside from loopback and my own.

Help is appreciated. I feel like I am missing something painfully obvious...

[/code]


Top
   
 Post subject:
PostPosted: Tue Oct 25, 2011 4:39 pm 
Offline
Senior Newbie

Joined: Sun Aug 22, 2010 12:57 pm
Posts: 19
Your SSH config is missing a space. It should be:

Code:
PasswordAuthentication yes


Also, your IP is already static. Linode uses what's called a DHCP reservation which means that your node will always be issued the same IP address by the DHCP server when it reboots. The only reason to disable DHCP and use static networking is if you add another IP. In that case, there is a guide on Linode Library, here:

http://library.linode.com/networking/co ... interfaces

TL;DR: Fix your SSH config, and leave DHCP enabled.


Top
   
 Post subject:
PostPosted: Tue Oct 25, 2011 4:47 pm 
Offline
Newbie

Joined: Tue Jul 12, 2011 2:00 pm
Posts: 4
swaj wrote:
Your SSH config is missing a space. It should be:

Code:
PasswordAuthentication yes


Also, your IP is already static. Linode uses what's called a DHCP reservation which means that your node will always be issued the same IP address by the DHCP server when it reboots. The only reason to disable DHCP and use static networking is if you add another IP. In that case, there is a guide on Linode Library, here:

http://library.linode.com/networking/co ... interfaces

TL;DR: Fix your SSH config, and leave DHCP enabled.


That missing space isn't in my sshd_config...
I'll leave the dhcp option in place for now.

Still confused why I cannot ssh into my linode however.
Iptables isn't up and running.
Would Linode be filtering my VM? I had it up for a while, before I started using it...
What's strange is the Permission Denied (publickey) message is telling me it's not looking for a password...

EDIT: I can telnet to my IP on port 22 and get an SSH-2.0-openssh prompt. But the hostname that comes up is kind of weird...it say's connected to "iwvpost.iwvpost.com"...
Could my linode have been co-opted?

Thanks...


Top
   
 Post subject:
PostPosted: Tue Oct 25, 2011 6:14 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What do you think your IP address is?

Does it match what you get when you do "ip addr" with DHCP enabled?

Does it match what shows up on the Remote Access tab in the dashboard?

_________________
Code:
/* TODO: need to add signature to posts */


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