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. In both cases, you can also specify (in putty by a checkbox) if the listening LAPTOP/SERVER also accepts connection from other hosts. PUTTY setup: source port: 7000 destination: ip:port (or hostname:port) select 'Local' SSH: ssh -L 7000:hostname:port. 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) again, the destination could be localhost:port to connect to server itself. (call it target)Įnsure the following is in /etc/ssh/sshd_config: Linux in with an ssh/web server with no static IP.Under Configure Proxies to Access the Internet select the Manual proxy configuration radio button. Linux in with an ssh server with static IP ( call it ) Under Advanced, in the middle of the page, select Network -> Connection -> Settings.This is my experience of using ssh for connecting a computer without static ip address from a remote computer.This is required to manage projects in server (serving in LAN) with no static ip to use
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |