Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

Debian SSH Login Issue

I'm dealing with a client network that has had 4 or 5 under qualified or under paid (stopped showing up because of non-payment) consultants pour through the servers.  My goal is to take all of their existing environment and move it into a new VMWare environment.  There are a variety of hardware failures showing up on the NAS they are using so all help is appreciated.  

Long story short (tldr) is a battery backup died, the owner plugged the servers right into the outlets in their office.  The room had power issues, the servers that ran their business stopped booting.  The environment consisted of two Debian Linux servers talking to a Promise NAS over iSCSI.  One was a vserver box the other a file server.  Nothing is documented.

The long story for those who want to read, assuming it might be helpful to better understand that I'm flying blind.

Consultant 1 comes in and sells them a new server (SuperMicro) that is setup as a new Linux vserver box to boot the clients apps and a used Sun Server that will be setup the clients Friend (Friend 1).    Consultant 1 is new to sys admin work (less than 2 years experience) and only succeeds in getting one of the servers operational.  Consultant 1 walks out because he's unable to complete the job.

Consultant 2 comes into the picture.  Consultant 2 recommends a new server, the client goes out and purchases something less expensive without adhering to the recommendations.  Consultant 2 sets it up as a Debian server running X11, Oracle Virtual Box and as a File Server.  Consultant 2 then configures public ip addresses onto the Consultant 2 walks out because of payment issues.  

I'm here now.  The clients billing app is still down, its been months, we take a retainer.  

The first Debian box that runs vserver doesn't want to let me login with SSH.  I have root access from the physical terminal but I need to be able to SSH in for me to run the VMWare Converter.  

This is the output from my attempts:

mactopgo:.ssh myname$ ssh -v root@
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: identity file /Users/myname/.ssh/id_rsa type -1
debug1: identity file /Users/myname/.ssh/id_rsa-cert type -1
debug1: identity file /Users/myname/.ssh/id_dsa type -1
debug1: identity file /Users/myname/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 98:9b:3d:71:5f:a6:35:a7:50:e6:2f:08:30:63:0f:f1
The authenticity of host ' (' can't be established.
RSA key fingerprint is 98:9b:3d:71:5f:a6:35:a7:50:e6:2f:08:30:63:0f:f1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/myname/.ssh/id_rsa
debug1: Trying private key: /Users/myname/.ssh/id_dsa
debug1: Next authentication method: password
root@'s password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@'s password: 

Open in new window

To view the sshd_config you will need to view a video I captured of the screen.
  • 2
1 Solution
So why are they paying you money to fix the issue when you do not understand it ?
Strange :)

The first issue is getting you logged in over SSH.
Google 'setting up SSH for authentication using PAM'

Next pick the best box - or use both if needed.  
Check the spec on the software to see what it will run under and what other requirements it has (like databases).
Install that and then get it running.

Do I get a retainer fee ?      :)
jer2eydevil88Author Commented:
No one understands a network without any documentation ;-)

I figured it out with some troubleshooting.  The issue is that vserver setup adds the IP of the host as well as the guest.  The host was running OpenSSH-Server as well as the guest and the two were interfering with each other.  I was typing the password for the VM Host and not the VM Guest.  As a result the password was not being accepted.  

Problem closed, retainer fee is mine :-).
jer2eydevil88Author Commented:
I resolved the issue before the community could assist.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now