Troubleshooting
Problem
I am being prompted for a password if I try to login via ssh to the other host, even if I am using ROOT account already. How do I fix this issue? How do I setup an ssh passwordless connection for ROOT account?
Symptom
When performing ssh using root account between the 2 hosts of a PDA appliance, the system asks for a password.
Resolving The Problem
1. On Host 1, change directory to /root/.ssh
- # cd /root/.ssh
# pwd
/root/.ssh
- # more id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwU4sOTu4mACGtSdNUG63PTbOnzXm1OF9at/mqO57iUZoxpQA3LPgV7FUwnjWaIBDjD+/awR0GbC9QeJoxxY+8NWIU+E
5l8d4liGZ2tNNEFXFbOGr/cq+n1ym2irVE6ywqkiaU0HClk7+BFv0mb5JYwsc1z7k5cj9hRSwWfRpAm+5WRUx3oTarS9t4sHFXdqPEIFUtxLVXorKY8tAYTBuOQQC8i
fUFfGWu6LY4/WCg/gTPpcjNVtEskOiiz6TedmepvXpOUjPTF+p48Tfe8l/cV768MuCTaylcZCiA5wMNVILFi5I/sCXqJUC7ak3T3SyryCsvE1P/YRSfvOoBlJiKQ==
root@NZ35064-H1
3. On Host 2, backup the file - /root/.ssh/authorized_keys
4. On Host 2, using an vi editor, edit the file /root/.ssh/authorized_keys and copy the contents of the file you viewed in step # 2.
5. From Host 1, you should now be able to ssh login to Host 2 without being prompted for a password
6. Repeat steps 1 to 5 but swapping the roles of Host 1 and Host 2 to enable passwordless connections from Host 2 to Host 1.
[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"IBM Netezza Analytics","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21962863