IBM Support

Setup no password ssh access

Question & Answer


Question

Setup no password ssh access

Answer

Setup no password ssh access1.From any machine run: host1% ssh-keygen -t dsa


When asked for a passphrase hit enter. This creates a file at ~/.ssh/id_dsa which is supposed to be private and local to that machine, and creates a ~/.ssh/id_dsa.pub file that becomes part of the ~/.ssh/authorized_keys2 files on the remote machine and allows you to ssh from host1 to other hosts. You can use the same ~/.ssh/id_dsa everywhere.

2. From any machine run: host1%cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys2

Add the collowing lines to the ~/.ssh/config file:
StrictHostKeyChecking=no
ConnectionAttempts=15

On any new host, run the commands:
  • newhost% mkdir ~/.ssh
  • newhost% cp /backup/copy/for/ssh/* ~/.ssh
  • newhost% chmod 700 ~/.ssh
  • newhost% chmod 755 ~

[{"Product":{"code":"SSZTET","label":"IBM Spectrum MPI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSZTET","label":"IBM Spectrum MPI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
23 June 2018

UID

isg3T1013304