1834814 Members
2638 Online
110070 Solutions
New Discussion

Re: scp acting funny

 
Shahul
Esteemed Contributor

scp acting funny

Hi,

I am trying to do scp from one user to the same user on another system. for eg.

server1#su - user1
server1#scp -p file user1@server2:testfile

It asks for password, once you type password, you get the prompt back, as if it successfully copied. But nothing comes to server2. Please note that scp is working from root user perfectly. .ssh directory and known_hosts files exists in user's home directory. Has anyone seen something like this? Why is it not copying and not giving any error?

TIA
Shahul
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: scp acting funny

Shalom,

Try giving the file a path.

:testfile is the root directory of the user. I always specify a full path when doing this.

scp -p file user1@server2:/tmp/testfile

Also try -vvv option for diagnostics.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shahul
Esteemed Contributor

Re: scp acting funny

This is now resolved, it was some odd settings in .cshrc. Moved all the "run once" scripts to .login and that did resolve the problem.

Shahul
Esteemed Contributor

Re: scp acting funny

This is now closed