Solved

Debian SSH Login Issue

Posted on 2013-01-30
3
567 Views
Last Modified: 2013-02-04
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@192.168.10.72
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 192.168.10.72 [192.168.10.72] 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 '192.168.10.72 (192.168.10.72)' 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 '192.168.10.72' (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_REQUEST sent
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@192.168.10.72's password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
root@192.168.10.72's password: 

Open in new window


To view the sshd_config you will need to view a video I captured of the screen.

http://cl.ly/3Z261Y0h3X13
0
Comment
Question by:jer2eydevil88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Expert Comment

by:edster9999
ID: 38837710
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 ?      :)
0
 
LVL 3

Accepted Solution

by:
jer2eydevil88 earned 0 total points
ID: 38838068
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 :-).
0
 
LVL 3

Author Closing Comment

by:jer2eydevil88
ID: 38850510
I resolved the issue before the community could assist.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question