Pivotal Knowledge Base


gpssh to hosts hangs indefinitely


  • Greenplum gpssh utility hangs when connected to all segment hosts using host_files.
  • Greenplum gpssh command hangs.


When .bashrc file on any of the node having an interactive shell variables in Greenplum cluster nodes or any sort of interactive prompt can results in gpssh utility to hang indefinitely.

For example:

In sdw2 segment server following interactive commands specified in .bashrc file.

export PS1="[`whoami`@mdwt:$PGPORT:$PGDATABASE]$ "
export PROMPT_COMMAND='export PS1="[`whoami`@mdwt:$PGPORT:$PGDATABASE]$ "'

-- ssh commands will work as follows:

[gpadmin@mdw1 njonna]$ ssh sdw2 hostname

-- gpssh does not work until you remove the variables that caused the problem.

[gpadmin@mdw1 njonna]$ gpssh -h sdw2 hostname
[gpadmin@mdw1 njonna]$ gpssh -f all_hosts  "hostname"
[ERROR] unable to login to sdw2-1
hint: use gpssh-exkeys to setup public-key authentication between hosts
Error: Error logging into host sdw2-1 


Remove any interactive variables in ".bashrc" on the Greenplum cluster nodes.


Powered by Zendesk