Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189
Rep:
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.
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..
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?
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
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.