Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. Linux local_machine_name 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux
  2.  
  3. autossh -M 0 dbase1
  4.  
  5. Host dbase1
  6. HostName x.x.x.x
  7. User serverusername
  8. LocalForward 54320 localhost:5432
  9. ServerAliveInterval 30
  10. ServerAliveCountMax 3
  11. ExitOnForwardFailure yes
  12. ProxyCommand ssh -q serverusername@x.x.x.x nc %h %p 2> /dev/null
  13.  
  14. [Unit]
  15. Description=AutoSSH tunnel service
  16. After=network.target
  17. [Service]
  18. Type=simple
  19. User=*username with cert and config file in home/username/.ssh/ folder*
  20. Environment="AUTOSSH_GATETIME=0"
  21. ExecStart=/usr/bin/autossh -vvv -M 0 dbase1
  22. [Install]
  23. WantedBy=multi-user.target
  24.  
  25. Jul 21 14:38:30 local_machine_name autossh[555]: *** Connection successful, welcome to the remote server! ***
  26. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: client_input_channel_req: channel 2 rtype exit-status reply
  27. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: rcvd eof
  28. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: output open -> drain
  29. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: obuf empty
  30. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: close_write
  31. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: output drain -> closed
  32. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: rcvd close
  33. Jul 21 14:38:30 local_machine_name autossh[555]: debug3: channel 2: will not send data after close
  34. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: almost dead
  35. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: gc: notify user
  36. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: gc: user detached
  37. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: send close
  38. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: is dead
  39. Jul 21 14:38:30 local_machine_name autossh[555]: debug2: channel 2: garbage collecting
  40. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: channel 2: free: client-session, nchannels 3
  41. Jul 21 14:38:30 local_machine_name autossh[555]: debug3: channel 2: status: The following connections are open:
  42. Jul 21 14:38:30 local_machine_name autossh[555]: #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)
  43. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: channel 0: free: port listener, nchannels 2
  44. Jul 21 14:38:30 local_machine_name autossh[555]: debug3: channel 0: status: The following connections are open:
  45. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: channel 1: free: port listener, nchannels 1
  46. Jul 21 14:38:30 local_machine_name autossh[555]: debug3: channel 1: status: The following connections are open:
  47. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: fd 0 clearing O_NONBLOCK
  48. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: fd 1 clearing O_NONBLOCK
  49. Jul 21 14:38:30 local_machine_name autossh[555]: debug3: fd 2 is not O_NONBLOCK
  50. Jul 21 14:38:30 local_machine_name autossh[555]: Transferred: sent 3372, received 3384 bytes, in 0.7 seconds
  51. Jul 21 14:38:30 local_machine_name autossh[555]: Bytes per second: sent 4633.6, received 4650.1
  52. Jul 21 14:38:30 local_machine_name autossh[555]: debug1: Exit status 0
  53.  
  54. Jul 21 14:38:30 local_machine_name autossh[555]: ssh exited with status 0; autossh exiting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement