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
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
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
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
#从本机到远程同步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
How to Configure IPSec Tunneling in Windows 2000
The information in this article applies:
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Server
SUMMARY
You can use IP Security (IPSec) in tunnel mode to encaps
To disable IPV6 tunnel in Windows 7, IPv6 tunnel encapsulates IPv6 packets in IPv4 packets so that IPv6 packets can communicate through IPv4 networks. For devices using tunnel technology, IPv6 datagram is encapsulated into IPv4 at the entrance of the tunnel. The source and d
The WebLogic Web application is deployed under the Windows Server 2008 R2 operating system and tested after deployment, finding that the address of the test page is using the address of the tunnel adapter, not the static IP address, and that the network is not in the IPv6 access, Therefore, the decision to disable the IPv6 and tunnel adapters is as follows:
Disa
method requires that the tunnel end node use other mechanisms to obtain its IPV4 address, for example, using D H C P, manual configuration, or other IPV4 configuration mechanism.
If you are using a notebook, often debug the network. WINDOWS 7 will spontaneously build a IPV6 tunnel, usually we use Ipconfig/all will see a lot of tunnels, such as my side has more
Connect to fedora core2 through SSH in Windows
It is mainly because the fedora core2 encoding is UTF-8, so it cannot be correctly displayed.
1. temporary solution:
Run the following command every time you log on via SSH:
Chinese: Export lang = zh_cn.gb2312
English: Export lang = "en_us"
Export lc_all = "en_us"
For example, [root @ localhost ~] # Export lang = zh_
-keygen for OpenSSH in Linux and puttygen for putty in Windows) to use a public key and a private key. This is a key pair, the Public Key is placed at the location specified by SSH on the server, and the private key is properly saved by the user. Generally, when a private key is generated, a passphrase is set for it, when the client uses SSH to connect to the ser
[Hkey_local_machine\software\cygnus solutions\cygwin\mounts V2\/home] "Native" = "d:\\openssh\\home" "Flags" =dword:0 000000aChange "native" to your own home/home directory, this directory is the default login directory, the default login directory is: C:\OpenSSH\homeEnter the following command to start the service:net start opensshdHere to show that the server has been installed successfully openssh and successfully opened the service, it should be pointed out that some of the above are in the
1. Create a new directory and use git tools to open git Bash here2. Execute the following command ssh-keygen-t rsa-c "[email protected]" where the mailbox is GitHub's mailbox3. Re-execute the eval "ssh-agent-s" command4. Input ssh-add ~/.ssh/id_rsa command when error5. In the above situation, after entering
protocol version
-4-6 force use of IPv4 or IPV6
-C Enable compression
-I key private key file for authentication
-noagent Disable use of pageant
-agent Enable use of pageant
-m file read remote command (s) from file
-S remote command is a SSH subsystem (SSH-2 only)
-N don ' t start a shell/command (SSH-2 only)
-NC Host:port
Open
Introduction to Windows SSH client PuttyIntroduction of PuttyPutty is a free and compact Win32 platform for Telnet,rlogin and SSH clients. Its main program is only 364k, but the functional wire is not inferior to the commercial Telnet tool.Official homepage:http://www.chiark.greenend.org.uk/~sgtatham/putty/Putty is a handy Telnet tool for Linux, for reasons such
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.