In /etc/passwd in, replace shell of mytunnel from /bin/bash to /bin/false Lastly do following to ensure that mytunnel user can do only tunneling work via Replace root with mytunnel in above examples Run following in target computer to connect target computer via ssh(at 2048 port) ssh -R 1008:127.0.0.1:2048 you can excess target computer with following command ssh use JuiceSSH from android phone to testĪccessing server with root password is not good idea. Once entered, you will be logged into the remote server, and the SSH tunnel will be established. The host that you want your local computer to connect to. Run following in target computer to use :1008 as web address for target ssh -R 1008:127.0.0.1:80 you can excess target web server as :1008 from any device (try with browser from your mobile device) To do so, you can forward the connection using the following command: ssh -L 3336:db001.host:3306 userpub001.host Once you run the command, you’ll be prompted to enter the remote SSH user password. To establish a remote tunnel to your remote server, you need to use the -R parameter when connecting and you must supply three pieces of additional information: The port where the remote host can access the tunneled connection. (call it target)Įnsure the following is in /etc/ssh/sshd_config: Linux in with an ssh/web server with no static IP.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |