What do you call it when an ip address is converted to words?
Here's the deal, just tonight I transferred a file from Mint17 to MX14 using scp. As you can see (below) I had to type out the full ip address rather than the host name. How do you get it to translate the ip to the hostname? or else..... why is it timing out? It is much easier to type out the host name compared to it's ip address.
username1@hostname1:~/Documents/Earnings/DailyEarnings$ scp Yearly\ Template.ods username2@hostname2:/home/mthavens/Documents
ssh: connect to host hostname2 port 22: Connection timed out
lost connection
^Cusername1@hostname1:~/Documents/Earnings/DailyEarnings$ scp Yearly\ Template.ods username2@192.168.0.2:/home/username2/Documents
username2@192.168.0.2's password:
Yearly Template.ods 100% 51KB 51.4KB/s 00:00
username1@hostname1:~/Documents/Earnings/DailyEarnings$
scp
Re: scp
If you are using fixed ip addresses then you just need to add a line like this to your /etc/hosts file:
If you are using dynamic ip addresses (via dhcpd for example) then it is a little more complicated.
Code: Select all
192.168.0.2 hostname2
Re: scp
Different routers have the settings for lan dns resolution in different places, so it's hard to give a general answer. One thing to remember is that dns resolution on a lan is case sensitive, so mx-14 <> MX-14. Logging into your router's configuration pages (in your case most likely at http://192.168.0.1 ) should let you see what names the machines on your lan are seen as by the router.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB
Re: scp
I suspect that they still have the Router's IP address printed or stamped on the bottom of the unit. Careful there is a Reset button somewhere (bottom or back most of the time) also.
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain
--Mark Twain