LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-22-2009, 09:44 AM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
unable to ssh into a machine..


Hi all

Im a newbie to ssh'ing and I have 2 machines...
Both have dhcp IPs but Im unaware of how to use ssh..

One machine runs solaris and the other nexenta.
Could anyone please help me to set it up...

on both the machines ssh is online..
Yet when i try
#ssh <solaris machine>
password: ??

What do I need to enter there?
I entered the password that I had given during the key creation but that is not being accepted at all.
Im prompted for the password thrice and then terminated.
Im a newbie so could you please help

Last edited by wrapster; 08-22-2009 at 09:56 AM.
 
Old 08-22-2009, 10:00 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

Rep: Reputation: 105Reputation: 105
Can you login directly on the Solaris machine? That's the username and password you want to enter when ssh'ing. If your username on the nexenta machine is different, then use

# ssh username@solarismachine

Also, I'm guessing from your use of "#" that you are logged in as root. That may or may not be allowed on the Solaris machine. Take a look at /etc/ssh/sshd_config and see if PermitRootLogin has a value of "no". Typically, this is not allowed, but it depends on how your system is configured.

(Oh, and always check to make sure your shift lock is not on. ).

Last edited by choogendyk; 08-22-2009 at 10:04 AM.
 
Old 08-22-2009, 10:01 AM   #3
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
you havent entered the password correctly, or the password you have is not a good password. your disconnected after your third failed attempt at entering an incorrect password..
 
Old 08-22-2009, 10:08 AM   #4
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
in the sshd_config file the PermitRootLogin and PermitEmptyPasswords are set to "no"

should i set it to Yes?

Secondly..
Both the machines are logged in as root..
they are mine only and have only root user...
setting this parameter to Yes should resolve the issues?
 
Old 08-22-2009, 10:09 AM   #5
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
I just set the parameters to yes..
Yet its not working.
do i need to restart ssh?
 
Old 08-22-2009, 10:11 AM   #6
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
Thanks for your help...
I was able to login..
and this was the issue... that of permissions...

Thanks a lot
 
Old 08-22-2009, 10:44 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by wrapster View Post
Thanks for your help...
I was able to login..
and this was the issue... that of permissions...

Thanks a lot

what?? you set ssh server to permit root login and empty passwords???
I hope these servers are on a WAN or they will be hacked to shreds in no time.
Saying that, i wouldnt even have those settings on my linux boxes that are in LANS
 
Old 08-22-2009, 12:27 PM   #8
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,989

Rep: Reputation: 63
Quote:
Originally Posted by wrapster View Post
I entered the password that I had given during the key creation but that is not being accepted at all.
Reading this, it looks like you tried to use passwordless authentication, possibly using a keystore with public/private keys. If ssh doesn't know which key to use then (by default) it will fall back to prompting for a login password on the machine, which seems to be what's happening here.

You might need to use ssh-agent after you log in and before running ssh in order to unlock the private key used in the connection. I presume that the ssh-agent password is the "password ... given during the key creation" that you refer to.

I've used ssh-agent, but I've never set it up, so I'm not entirely sure what you need to do. Perhaps you could post a link to the instructions you followed to set up ssh? http://mah.everybody.org/docs/ssh lists the following example:
Code:
ssh-add ~/.ssh/id_dsa
Also, as other people have suggested, directly logging in to a machine as root across a network is generally considered to be dangerous and so is disabled by default. Some older versions of openssh had a bug that let you log in as the root user without entering a password (fixed in version 3.7.1p2 http://www.kb.cert.org/vuls/id/602204)

Hope that helps,

—Robert J Lee
 
Old 08-24-2009, 01:39 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by wrapster View Post
One machine runs solaris and the other nexenta.
In other words, both of the machines are running Solaris ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 02:47 PM
unable to ssh my machine in any way - any ideas? mr_furley Linux - Networking 17 07-03-2006 09:00 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM


All times are GMT -5. The time now is 01:44 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration