scp command not working ??
Hi,
i am trying to use scp command to send some files from my pc to another pc but it just does not work. Suppose i have a text file report.txt i use: scp report.txt 192.168.40.89 ,this shows me cp: cannot stat `report.txt': No such file or directory when i use: scp report 192.168.40.89,the console just takes me to the next waiting for my next command. When i go back and on my other pc there is no such file in the home directory. Why is this happening? Please point the mistake i am committing. thanks |
Quote:
Try this if it works Code:
scp /path/to/report.txt 192.168.40.89:/some/path/on/this/host |
Hi tried as you told me
it gives me this error ssh: connect to host 192.168.40.89 port 22: No route to host lost connection |
Quote:
Quote:
|
Is the host 192.168.40.89 pingable from wher you want scp? If it is, is there an sshd running there? Or if iptables is blocking tcp port 22? Are using root to scp across?
To check if tcp 22 (default ssh) is running and reachable, from where you want to scp, do Code:
nmap -n -T4 -p 22 192.168.40.89 Code:
telnet 192.168.40.89 22 Code:
|
All times are GMT -5. The time now is 01:17 AM. |