ajd
Posts: 1
Joined: Mon Mar 17, 2014 7:34 pm

SSH with alias over wifi from any comp on the network

Mon Mar 17, 2014 7:53 pm

I am attempting to set up a raspi so that from any computer on our network, we can ssh into the raspberry using an alias. The raspberry is connected to the internet via a wifi dongle. I am unsure of where to start on this, the previous IT personnel had apparently had it set up so that, with no changes to the interfaces file, the pi had an alias assigned to a static IP somewhere on the server side of things and everything worked fine, the ssh alias would be determined by which particular dongle was in the pi. All of the information I have been reading has suggested assigning a static IP in the network/interfaces file, but that seems contradictory to our end goal of having the dongle dictate the alias. I apologize in advance if this is poorly/confusingly phrased, or if this has been covered in another answer. Can anyone help with this?

hrts
Posts: 8
Joined: Mon Mar 17, 2014 2:09 pm

Re: SSH with alias over wifi from any comp on the network

Mon Mar 17, 2014 10:50 pm

Hi,
If the IP remains the same then it is easy: define a DNS alias for the same IP..
In this case it has nothing to do with the different dongles!

But if the name and the alias have different IP addresses (changing the dongle changes the IP) then you need to reserve in the DHCP server for each of the dongles a pair NAME-IP like this:

Dongle 1: with MAC 1: IP x.x.x.11 : Name Raspberry1
Dongle 2: with MAC 2: IP x.x.x.12 : Name Raspberry2
Last, but not least, the DHCP server must be setup to update the DNS server every time it lease the pair IP-Name to the Pi board.

Return to “Troubleshooting”