0

I've a network with a router (TP-LINK) which delivers internet to my PC and laptop. Recently, I got raspberry pi and would like to connect to via ssh. The fact that I'm aware how to set ssh connection to raspberry pi from laptop or PC but I'm wondering how to bind specific domain to my raspberry pi's ip adress. For instance, I'would like ssh hostname@domain_ from PC or my laptop instead of entering it's ip adress of pi in my home network to ssh. Can you help me?

P.S. There is a situation, where dynamic ip address allocated to my pi every time I reconnect it to network.

0

Why don't you just create an alias in Terminal to connect you via SSH automatically?

alias pi="ssh root@10.0.0.X"

So in future, just type in 'pi' in terminal and it will send the command.

  • Thank you for answer! But, I would like to experience some ip to domain bind :) – elgolondrino Feb 17 '15 at 16:38
  • In that case use BIND or the host function in Linux – Marius de Beer Feb 17 '15 at 16:49
0

As It is behind your router and I suppose you use NAT. One way to achieve this is to use a dns server with a dhcp server. The point is to create in your dhcp a static lease for your raspbery and add this to your dns. Other strategy is to add the raspberry in your host and to configure it with a static ip :)

  • 1
    This answer is a bit too brief. Can you explain how to do this? – bwDraco Feb 17 '15 at 17:32
-1

You could use No-Ip

You will an account (which is free) and select a domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.