Using autossh to ensure the stability of the ssh tunnel we recently hope to establish is reliable. Sometimes the process is still in progress, but the connection is no longer valid. Autossh is a good thing. Installing apt-get install autossh in Ubuntu is simple, for example, the original command of Using ssh: [plain] ssh
Expose the ssh tunnel port to another machine and automatically detect the script Java code #! /Bin/bash PIDS = 'ps-ef | grep ssh | grep 9222 | awk '{print $2} ''if [-z" $ PIDS "]; then # Check whether the service has enabled ssh-C-f-N-g-R 9222: 127.0.0.1: 22 root@42.121.119.100 echo "start
First you have to have a foreign VPScan apply directly on AWS, one year freeUnder DebianCD. SSHVim ConfigEnter the followingHost AWS//Name, feel free to run for a whileHostName IP//Can see IP in AWS Dashboard, or write public DNSUser Ubuntu//ubuntu VPS username is Ubuntu, others should not be the sameIdentityfile//pem file pathCompressionLevel 6Dynamicforward localhost:3128//port itself defined, to modify the corresponding port in the AutoproxyThen set Firefox socks5 localhost 3128Autoproxy plug
forwardings to Theloopback address. This prevents the other remote hosts from connecting to forwarded ports. Gatewayports can used to specify, sshd should allowremote port forwardings to bind to non-loopback addresses, thus Allowing other hosts to connect. The argument May is "no" to force remote Portforwardings to being available to the local host only, "yes" to force remote POR T forwardings to bind to the wildcard address, or ' clientspecified ' toallow the client to select the address to wh
Use putty's SSH tunnel to connect to Oracle1. Set SSH tunnel on putty of localhost, for example:In this way, the port 1511 connecting to the local machine will be forwarded to port 1521 of remoteIP. Click "Add", and then log on to the remoteIP through SSH. The SSHtunnel is c
#从本机到远程同步Rsync-avpz 111/10.30.4.149:/tmp/111/Rsync-avpz 10.30.4.149:/tmp/111/./111/#用其他端口Iptables-i input-p TCP--dport 22-s 10.30.4.44-j drop 22 Port DropTelnet 10.30.4.149 test can connect to port 22Rsync-avpz-e "Ssh-p 10022" 10.30.4.149:/tmp/111/./111/Exercises:1. How do I avoid having the user enter a password when using SSH mode?Use key authentication to not set the key password when creating the key2.
1. Set SSH tunnel on putty of localhost, for example:
In this way, the port 1511 connecting to the local machine will be forwarded to port 1521 of remoteip.
Click "add", and then log on to the remoteip through SSH. The sshtunnel is created.
On the local machine netstat-A | find "1511", you can see that port 1511 has a linstener listener.TCP 127.0.0.1: 1511 c
References: http://oldsite.precedence.co.uk/nc/putty.html
Through the putty client settings, you can use tunnel to access specific ports of the remote server.
To access the remote server IP address 10.68.35.14, MySQL port: 3306
In this case, port 3306 of the server is not open to the outside, so you can set it through putty tunnels,
Set tunnel source port to 6666,
Set destination to localhost: po
[Email protected] ~]# autossh-m 5681-cqtfnn-d192.168.2.172:10010 [email protected] x.x.x.xparameter explanation:-m Specifies the listening port-V Show version and exit-F Run in background-C Start Data compression transfer-Q Quiet mode operation, ignoring hints and errors-N with the-f parameter-N Do not execute remote command, specifically for Port forwarding-d Specifies a local machine (dynamic application forwarding, if not IP, the default only listens to 127.0.0.1)Autossh
Download the MySQL workbench 5.2.33 ce MSI installation package, and prompt for. NET Framework 4.0.
Download. NET and install WB again.
The problem arises. When you connect to the database, the error "cannot start SSH Tunnel Manager" is returned.
I checked it online and it seems that the. NET Framework is faulty.
It is said that it is okay to download and install. NET Framework 3.5.
Never Uninstall. NE
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.