Create start.sh
This commit is contained in:
		
							parent
							
								
									3cafd98acd
								
							
						
					
					
						commit
						a2b35f94d5
					
				
							
								
								
									
										6
									
								
								start.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								start.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| remoteport=$(sqlite3 /opt/sshjump/sshjump.db 'select port from sshjump') | ||||
| localport=22333 | ||||
| 
 | ||||
| autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -R $remoteport:localhost:$localport root@remotehost.com -p 22333 -i /opt/sshjump/id_rsa | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user