networking - scp not able to resolve dns name -


question first: know why scp won't resolve dns name wheezy ip address 192.168.164.144 while ping does?

explanation & details second:

while on os mavericks scp files terminal vmware fusion debian instance fine. had make sure ip address , machine name (wheezy) in both debian /etc/hosts file , in /etc/hosts file of mac.

however after upgrading yosemite can't scp files virtual host using domain name. can scp files virtual machine if specify ip address. works:

scp test_file.txt dan@192.168.165.144:~/ 

but not:

scp test_file.txt dan@wheezy:~/ 

this boggles mind because host "wheezy" pings fine:

bashdan@danrauxa ~ >>ping wheezy ping wheezy (192.168.165.144): 56 data bytes 64 bytes 192.168.165.144: icmp_seq=0 ttl=64 time=0.335 ms 64 bytes 192.168.165.144: icmp_seq=1 ttl=64 time=0.337 ms 64 bytes 192.168.165.144: icmp_seq=2 ttl=64 time=0.290 ms ^c --- wheezy ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.290/0.321/0.337/0.022 ms 

and /etc/hosts file identical on both yosemite , wheezy machine:

127.0.0.1   localhost 192.168.165.1 danrauxa 192.168.165.144 wheezy  127.0.0.1       drupal-7-31.local 127.0.0.1       drupal8devprep.local 

does know why scp won't resolve dns name wheezy ip address 192.168.164.144 while ping does?

many thanks. -d-

check ~/.ssh/config see if there wheezy host in there.

also run scp in verbose mode:

scp -v test_file.txt dan@wheezy:~/. 

might give more information on failure happening.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -