본문 바로가기
misc./Software

SSH connection without a static IP address

by medical physicist 2016. 6. 12.

이렇게 한 번 해볼까나?...


To get started with ssh in general, install openssh-server.

sudo apt-get install openssh-server

On the next restart, this should start up automatically. To connect to the computer remotely, just enter the following in a remote terminal, substituting the ALL-CAPS names for your own:

ssh USERNAME@IPADDRESS

Now, to take care of the dynamic ip forcing you to recheck the IP all the time:

Get a free account on dyndns.com and choose the name you want to type when you connect.

Once that is done, install "ddclient" on the server machine. This will automatically update the IP address for you with dyndns.

sudo apt-get install ddclient

When you run it, it will ask you a series of questions, so have your username, password, and the URL you chose earlier ready to type in. It should also automatically add itself to startup.

That should be it. Now when you ssh, just use the URL you chose instead of your IPADDRESS since this should automatically update if the IP changes.

If you have a router, make sure to forward port 22 to your server! There are lots of guides on this atportforward.com for your specific router.




http://askubuntu.com/questions/72349/how-to-run-an-ssh-server-without-a-static-ip-address

'misc. > Software' 카테고리의 다른 글

PyQt5  (0) 2017.06.02
사무실 pc에 PyInstaller 설치.  (0) 2017.01.16
-javadir /usr/lib/jvm/java-1.7.0/jre/  (0) 2016.01.18
Pydicom  (0) 2015.07.14
LaTeX 에서 word 파일로 변환하기 - Pandoc  (0) 2015.07.14

댓글