while we try to ssh from one server to another and we receive above error.
newcqa@cde-app-xx.abc.com:/x01/newcqa23>ssh tomcat@172.25.72.168
Write failed: Broken pipe
first we check with the original server and there is no issue with that, and we switch to the second one..
then we find that we can't switch to the user on the 2nd server.
[root@exp-tomcat ~]# su - tomcat
su: cannot set user id: Resource temporarily unavailable
issue with resource limit exceed for tomcat user in the server.
them we increased the resource limit.
vi /etc/security/limits.conf
add below entry..
tomcat soft nproc 2047
tomcat hard nproc 16384
tomcat soft nofile 1024
tomcat hard nofile 65536
Then issue resolved.
newcqa@cde-app-xx.abc.com:/x01/newcqa23>ssh tomcat@172.25.72.168
Write failed: Broken pipe
first we check with the original server and there is no issue with that, and we switch to the second one..
then we find that we can't switch to the user on the 2nd server.
[root@exp-tomcat ~]# su - tomcat
su: cannot set user id: Resource temporarily unavailable
issue with resource limit exceed for tomcat user in the server.
them we increased the resource limit.
vi /etc/security/limits.conf
add below entry..
tomcat soft nproc 2047
tomcat hard nproc 16384
tomcat soft nofile 1024
tomcat hard nofile 65536
Then issue resolved.