LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-16-2007, 04:34 AM   #1
Sulman Shah
Member
 
Registered: Oct 2006
Posts: 38

Rep: Reputation: 15
ssh: passward denied


I am trying to run the following command from a host1 for a
host2(202.165.250.110)

Host#1
[root@localhost]# ssh@202.156.250
user@202.165.250.110's password:

when I enter the correct root password of the system it's giving the following error message.

Permission denied, please try again.

Tell me please. What is that I missing??
 
Old 01-16-2007, 04:43 AM   #2
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Quote:
Originally Posted by Sulman Shah
[root@localhost]# ssh@202.156.250
user@202.165.250.110's password:
It doesn't look like your root account
Try ssh root@your_ip

And check if you haven't got PermitRootLogin no set in your sshd_config
 
Old 01-16-2007, 04:46 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Sulman Shah
[root@localhost]# ssh@202.156.250
user@202.165.250.110's password:
It simply tells that the password is wrong. Double check the syntax of the ssh command. If you omit the username (e.g. ssh 202.165.250.110) it try to connect with the same user as you are logged in on Host1. If you specify the user (e.g. ssh user@202.165.250.110) you are sure to log on Host2 as user.
 
Old 01-16-2007, 05:11 AM   #4
Sulman Shah
Member
 
Registered: Oct 2006
Posts: 38

Original Poster
Rep: Reputation: 15
yes its working when i remove user@ from the command. But I want to run it with the rsa key-generation module in the following manner,

host1 ~# ssh-keygen -t rsa
host1 ~# scp .ssh/id_rsa.pub user@host2:host1_id_rsa.pub
host1 ~# ssh user@host2

over here when i enter the root password of host2 it's giving me an error message of
Permission denied, please try again. Which i don't understand why its doing so? I then want to run the following commands.

host2 ~$ mkdir .ssh
host2 ~$ chmod 700 .ssh
host2 ~$ cd .ssh
host2 .ssh$ mv ../host1_id_rsa.pub ./
host2 .ssh$ cat host1_id_rsa >> authorized_keys
host2 .ssh$ chmod 600 authorized_keys
 
Old 01-16-2007, 06:31 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by Sulman Shah
host1 ~# ssh-keygen -t rsa
host1 ~# scp .ssh/id_rsa.pub user@host2:host1_id_rsa.pub
host1 ~# ssh user@host2

over here when i enter the root password of host2 it's giving me an error message
The key you want to generate is for root or for user? Anyway, to be sure specify root@host2 when you want to login as root, user@host2 when you want to login as user. If the key is for user, you have to login as user, otherwise you have to change ownership after creating files as root.
 
Old 01-16-2007, 06:49 AM   #6
Sulman Shah
Member
 
Registered: Oct 2006
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks a lot I got it running cuz of your help
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh -Permission denied zaphod_es Linux - Networking 4 05-21-2006 01:56 PM
SSH Permission Denied Chimney Linux - Security 1 11-10-2005 06:01 PM
ssh login denied wacko_cracko Linux - Security 3 10-30-2004 10:15 AM
Passward imsajjadali Red Hat 0 07-05-2004 10:28 AM
Passward Change Script imsajjadali Red Hat 0 06-26-2004 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration