- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem in SSH with root user.!!!
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
Forums
Discussions
Discussions
Discussions
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
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
05-29-2007 07:07 PM
05-29-2007 07:07 PM
Problem in SSH with root user.!!!
Source Server : ukapx044 (say)
Destination Server : ukapx042 (say)
I need to copy '/interfaces' directory (which is owned by root) from source (ukapx044) to the detination server (ukapx042).
I am trying to implement SSH using root, but its not allowing me, see below:
Generation of key-pair at source server (ukapx044)
[ukapx044:root:/home/root/.ssh:] ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/root/.ssh/id_rsa):
/home/root/.ssh/id_rsa already exists.
Overwrite (yes/no)? yes
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/root/.ssh/id_rsa.
Your public key has been saved in /home/root/.ssh/id_rsa.pub.
The key fingerprint is:
57:d7:9f:a3:a9:0a:e7:35:1f:91:b5:6b:fd:50:05:1e root@ukapx044
But when i try to push the public key to the destination server (ukapx042), its gives an error i.e. Permission denied, see below:
[ukapx044:root:/home/root/.ssh:] cat id_rsa.pub | ssh root@ukapx042 'cat - >> /home/root/.ssh/authorized_keys'
root@ukapx042's password:
Permission denied, please try again.
I have checked the permission on $HOME/.ssh on both servers & its 700 already.
I tried pushing the key manually by copy/paste, still it didnt work.
Any ideas?
Regards,
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 07:20 PM
05-29-2007 07:20 PM
Re: Problem in SSH with root user.!!!
Check whether root can login normally (/etc/default/*), etc.
#grep PermitRootLogin /etc/opt/ssh/*config
See whether sshd_config is allowing root access. If it is not you uncomment it and restart the sshd daemon.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 07:25 PM
05-29-2007 07:25 PM
Re: Problem in SSH with root user.!!!
RLOGIN for root is not allowed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 09:17 PM
05-29-2007 09:17 PM
Re: Problem in SSH with root user.!!!
is /home/root really the HOME directory of root@ukapx042 ?
For the first time, you will have to provide the correct password with this (modified) command:
cat id_rsa.pub | ssh root@ukapx042 'cat >> .ssh/authorized_keys'
I would set the mode of .ssh/authorized_keys to 600 as well.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 09:47 PM
05-29-2007 09:47 PM
Re: Problem in SSH with root user.!!!
-Did you try manually like below:
scp /home/root/.ssh/id_rsa.pub ukapx042:/home/root/.ssh/id_rsa.pub.ukapx044
ssh root@ukapx044
cat /home/root/.ssh/id_rsa.pub.ukapx044 >> /home/root/.ssh/authorized_keys
-Let us know the result.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2007 10:28 PM
05-29-2007 10:28 PM
Re: Problem in SSH with root user.!!!
Rgds.