|
|
2010-11-08
, 02:14
|
|
Posts: 12 |
Thanked: 2 times |
Joined on Oct 2008
@ Houston
|
#12
|
#!/bin/sh cd /root/ipcheck python ipcheck.py -l -r checkip.dyndns.org:8245 username password domain /etc/init.d/ssh start
chmod 755 start_script.sh
mkdir /home/user/test
|
|
2010-11-08
, 02:27
|
|
Posts: 12 |
Thanked: 2 times |
Joined on Oct 2008
@ Houston
|
#13
|
#!/bin/sh
#!/bin/ash
edit /etc/event.d/sshd
I used "vi" to do that.
Comment out the first line:
Next step, give a password to "user"
Added the lines
I have to leave home now, but I think two simple scripts in /etc/network/if-up.d and /etc/network/if-down.d should do the job:
start_ssh in /etc/network/if-up.d:
Noob Question: If you have a device "A" connected to a public wifi (coffee shop, friends house), is there any way to ssh from device "B" into "A" without having to set modem port forwarding?
E.g.: if "A" is configured to listen to port 1234 and we know "A"'s public ip, will this work without configuring the modem(assuming 1234 is open)?
Last edited by colder; 2010-11-07 at 20:06.