- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SCP --- Without promting for Password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 03:26 AM
тАО03-28-2011 03:26 AM
Re: SCP --- Without promting for Password
Once and a while I have to configure new servers with the same issue.
Please follow the steps mentioned in the next url exactly, and all your wishes will come true:-)
http://waelchatila.com/2005/06/06/1118124232757.html
Do not forget the "chmod 700" part!
bye
Waldemar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 06:40 AM
тАО03-28-2011 06:40 AM
Re: SCP --- Without promting for Password
I read the url and I tried the steps given in it. Even then its not working.
Please help me with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2011 06:48 AM
тАО03-28-2011 06:48 AM
Re: SCP --- Without promting for Password
> debug1: Offering public key: /home/glance/.ssh/id_rsa
> [...]
> debug1: Offering public key: /home/glance/.ssh/id_dsa
> [...]
> debug1: Next authentication method: keyboard-interactive
The server did not like your key data.
> Did you see all the suggestions to look at
> the system log file on the server?
Well, did you?
The server probably knows why it was unhappy,
but it doesn't always tell the client. You
may need to look at the system log file on
the server to see what it didn't like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2011 03:20 AM
тАО03-29-2011 03:20 AM
Re: SCP --- Without promting for Password
I am facing this issue now only.
Before we had scp communication unidirectionally from server1 to server2 without password. I wanted to make this communication bidirectional. So I have shared the id_rsa.pub key.
Now Server2 is able to scp without password to server1. But the server1 is not able to scp without password.
Please help me with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2011 05:47 AM
тАО03-29-2011 05:47 AM
Re: SCP --- Without promting for Password
Public key sharing alone does not make much sense unless you have the private part of of the key.
On server2, find the id_rsa file under the user's .ssh directory and copy it to the server1 and put it the same place you picked it up on server2.
This should get you going.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2011 06:22 AM
тАО03-29-2011 06:22 AM
Re: SCP --- Without promting for Password
> keys, I am assuming [...]
"I am assuming" means that he doesn't know
what you did. I don't know what you did. We
don't know what you did, because you didn't
tell us what you did.
> [...] As usual, showing actual commands
> with their actual output can be more helpful
> than vague descriptions or interpretations.
Still true.
We also can't see your key files, or any of
the file or directory permissions or
ownership.
> [...] You
> may need to look at the system log file on
> the server to see what it didn't like.
Still true. We can't see what's in there,
either.
> Please help me with this.
You first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2011 10:54 AM
тАО03-29-2011 10:54 AM
Re: SCP --- Without promting for Password
follow the steps...
in node A:
in home dir of user A
cd /home/userA
mkdir .ssh
cd /home/userA/.ssh
ssh-keygen -t rsa
type enter for all.
rcp the id.rsa.pub key to node B in home dir of user B.
cd /home/userB/.ssh
cat id.rsa.pub >authorized_keys.
then rm the id.rsa.pub key.
ssh-keygen -t rsa
type enter for all.
rcp the id.rsa.pub key to node A in home dir of user A.(before rcp,rename the public key id.rsa.pub to nodeA.id.rsa.pub)
then do rcp.
cat id.rsa.pub >authorized_keys
now again rename the nodeA.id.rsa.pub to id.rsa.pub
then do ssh ipaddress of node A from Node B and vice- versa
then after u can do scp or sftp.
regards
MC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 12:40 AM
тАО03-31-2011 12:40 AM
Re: SCP --- Without promting for Password
Couple of useful links here.
http://www.linuxjournal.com/article/8600
http://www.phcomp.co.uk/TechTutorial/HOWTOs/ssh_passwordless_login.php
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 07:44 AM
тАО03-31-2011 07:44 AM
Re: SCP --- Without promting for Password
Thankyou for all your replies.
I had already followed the steps provided in the doc by Abid Iqbal.
I have generated ssh key. I have shared the id_rsa.pub key of one server to another server's authorized_keys file which is found in the .ssh directory of user's home directory.
Actually since I am trying to do scp bi-directionally without password, I have done the same sort of sharing in the other server also.
Even then I am prompted for password. I can do scp without password only unidirectionally. I am not able to do it bi-directionally.
Is there anything else I need to do?
Kindly help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2011 08:17 AM
тАО03-31-2011 08:17 AM
Re: SCP --- Without promting for Password
Otherwise, I would vote on ownership and permissions of .ssh (700) directory and authorized_keys (600) file. Make sure they are owned by the username which is using/storing these files. And permissions are as such indicated in parentheses above.
In the direction it is asking you for a password, run this command and post the whole output here:
ssh -vvv remote_server_name
UNIX because I majored in cryptology...