Regarding automated scp shell script from one sever to another server using or sftp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prethvi
    New Member
    • Nov 2014
    • 1

    Regarding automated scp shell script from one sever to another server using or sftp

    i want transfer one file from another server
    $ cd /tmp
    $ sftp orpcexdb@nacism ktl210.com
    Password:xxxx
    sftp> cd /tmp
    sftp> put filef
    uploading filef to /tmp/filef
    filef
    sftp> ls
    filea
    filef
    files
    sftp> bye

    but its not working can any one help me on thsi
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    So that's not a script - those are individual commands. Have you confirmed you have permissions on this server to add new files?

    Additionally, I'd HIGHLY recommend using ssh keys instead of passwords, but that's just me.

    Comment

    • Luuk
      Recognized Expert Top Contributor
      • Mar 2012
      • 1043

      #3
      If he does do a 'ls', and he sees the file, it is working

      But i think he cannot find his file on the 'another server'

      The problem 'its not working' is to vague to give correct answers to this question.

      Comment

      Working...