HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - scripts hanging with SSH sessions
 
Operating System - Linux
        1840139
        Members
    
    
        2733
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              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
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- 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
 
02-12-2009 04:53 AM
02-12-2009 04:53 AM
			
				
					
						
							scripts hanging with SSH sessions
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						We have a strange problem related to the scripts started with SSH remote sessions.
We have our application running in RHEL3 update 6, which is a mix of shell scripts(which we are starting in nohup) and executables created with g++. We have installed this application in atleast 10 machines and in one machine the the shell scripts and the executables HANGs when we start the application by logging into the mchine through SSH and kept the session idle.
Since the machine had only SSH enabled, we don't know the situation with rlogin/telnet.
when we searched in itrc, we have seen that the issue is happening because of the processes are associated to the SSH.
1) When we kill the ssh session process, everything start working normally.
a) Once, we have seen with ps -ef | grep -i ssh that the session is with term type as hpfms@notty. When we killed this process, everything started working fine.
b) Next time it happenend, the SSH process was running but there was no notty. At this time also, when we killed this process, everything started working fine.
I have seen similiar discussion threads but, there was no real conclusion on the problem anywhere.
Can somebody help me to solve this issue? Are there any environment setting or SSH options to come out of this?
Thanks and Regards,
Pratheesh.
		
		
	
	
	
We have our application running in RHEL3 update 6, which is a mix of shell scripts(which we are starting in nohup) and executables created with g++. We have installed this application in atleast 10 machines and in one machine the the shell scripts and the executables HANGs when we start the application by logging into the mchine through SSH and kept the session idle.
Since the machine had only SSH enabled, we don't know the situation with rlogin/telnet.
when we searched in itrc, we have seen that the issue is happening because of the processes are associated to the SSH.
1) When we kill the ssh session process, everything start working normally.
a) Once, we have seen with ps -ef | grep -i ssh that the session is with term type as hpfms@notty. When we killed this process, everything started working fine.
b) Next time it happenend, the SSH process was running but there was no notty. At this time also, when we killed this process, everything started working fine.
I have seen similiar discussion threads but, there was no real conclusion on the problem anywhere.
Can somebody help me to solve this issue? Are there any environment setting or SSH options to come out of this?
Thanks and Regards,
Pratheesh.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-12-2009 06:08 AM
02-12-2009 06:08 AM
			
				
					
						
							Re: scripts hanging with SSH sessions
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Shalom,
There is debug mode.
Change ssh calls to ssh -vvv
You will get good diagnostics to help solve the problem.
SEP
		
		
	
	
	
There is debug mode.
Change ssh calls to ssh -vvv
You will get good diagnostics to help solve the problem.
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-12-2009 10:29 AM
02-12-2009 10:29 AM
			
				
					
						
							Re: scripts hanging with SSH sessions
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Steven,
Thanks. The problem is that the machine is a production machine and we can login through puTTY only. I tried in one of our test machine where option -w is not available though -v is there.
1) From the forum discussions, I had seen that many have faced similiar issues but without any clear conclusion. I am just wondering whether anybody have some idea about this.
2) As we have atleast 9 other machine running with similiar applications and didn't anywhere this problem. So, I am guessing its something to do with some configuration or env parameters.
		
		
	
	
	
Thanks. The problem is that the machine is a production machine and we can login through puTTY only. I tried in one of our test machine where option -w is not available though -v is there.
1) From the forum discussions, I had seen that many have faced similiar issues but without any clear conclusion. I am just wondering whether anybody have some idea about this.
2) As we have atleast 9 other machine running with similiar applications and didn't anywhere this problem. So, I am guessing its something to do with some configuration or env parameters.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-12-2009 05:02 PM
02-12-2009 05:02 PM
			
				
					
						
							Re: scripts hanging with SSH sessions
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Gday Pratheesh,
Make sure the authorised_keys on the other end dont have the following items prior to testing:
user/.ssh/authorized_keys:
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa
This can result esp no-pty from allowing interactive login via ssh (we set this up for file transfer only).
Also make sure your ssh keys from remote host/.ssh/id_rsa.pub should match authorized_keys for remoting in user.
If they are take them out.
Robert. 
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
Make sure the authorised_keys on the other end dont have the following items prior to testing:
user/.ssh/authorized_keys:
no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa
This can result esp no-pty from allowing interactive login via ssh (we set this up for file transfer only).
Also make sure your ssh keys from remote host
If they are take them out.
Robert.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP