-2

I have been working on uploading from shell and I need to upload from shell I found scp in openssh-client . and it work perfectly but in this command I have to set destination path in ftp server like this

sshpass -p'Password' scp file user@ftpserveradd:/destionationpath

is there any way I can use vsftpd default directory and not use destination path like the sample command

0

Yes. If you issue the command

sshpass -p'password' scp file user@server:

it will copy file to the default home directory of user on server server.

  • Nope I try It too ...Several Time But Not Working :( – Rome Jun 4 '15 at 13:23
  • What is the error message? – dr01 Jun 4 '15 at 13:28
  • There Is No Error Or Message .... If It was i may know what am i doing wrong but it work with out error and yet nothing Uploaded – Rome Jun 4 '15 at 13:39
  • I Found Problem ... Because I Changed default dir in vsftpd.conf it's don't upload .... Thanks For Your Help .,.. thanks Alot – Rome Jun 6 '15 at 12:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.