![]() ![]() Troubleshooting of blocked requests when fetching messages from hundreds SQS queues June 26, 2017.How To: Create Subscription Filter in CloudWatch using serverless June 26, 2017.Analyze ‘Connection reset’ error in Nginx upstream with keep-alive enabled November 12, 2017.Improve performance of React Server Side Render by warming up service December 11, 2017.Metrics Driven Development – What I did to reduce AWS EC2 costs to 27% and improve 25% in latency December 31, 2017.Respawn limit 5 60 # respawn max 5 times in 60 secondsĮxport AUTOSSH_PIDFILE=/var/run/autossh.pidĪutossh -M 0 -4 -N -D 7070 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -o BatchMode=yes -o StrictHostKe圜hecking=no -i SSH_KEY_FILE_PATH We can use upstart to start ssh tunnel under Ubuntu by put the following nf file under /etc/init/ folder # autossh The idea is from rstunnel (Reliable SSH Tunnel), but implemented in C Start ssh tunnel at boot time I prefer to use autossh instead of ssh because it will auto reconnect if the connection lost, here’s the description from it’s homepage:Īutossh is a program to start a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. Ssh -ND 7070 HOSTNAME Use Autossh instead of ssh The simplest command to create a ssh tunnel is: #The following command will create a sock5 proxy on port 7070, and then you can use it in your browser ![]()
0 Comments
Leave a Reply. |