sftp - usage


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers sftp - usage
# 1  
Old 11-23-2011
sftp - usage

Hi,

I'm new to this sftp commands. Can someone please explain what exactly its doing

Code1:

Code:
  eval scp -i ${sshkey} "'${srcdir}/${fname}'" ${tgtfolder}

Code2:

Code:
ssh -i ${sshkey} ${etlssh} "cat ${remoteDir}/${fname}" > ${localDir}/${fname}

Code3:
Code:
sftp -P2246 -B ${file1} --password=file://$dir/.pass ${hostname}

Code4:
Code:
sftp2 -P22 -B $tempfile1 -oProxyServer=socks://<proxyname>:1080 -oBatchMode=yes -oIdentityFile=${sshkey} ${hostname}

Code 5:
Code:
  sftp -B $tmpFile1 -oBatchMode=yes -oIdentityFile=${SSHKEY} ${loginHost}

Code:
sftp -B $tmpFile1 -oBatchMode=yes -i${SSHKEY} ${loginHost}
   rc=$?

Code6:
Code:
sftp -B $tmpFile1 -i${SSHKEY} ${loginHost}
    sftp -P 2246 -D3 -B $tmpFile1 --password=file://${CTLDIR}/.tpgpass -i${SSHKEY} ${loginHost}
    sftp -P 2246 -D3 -B $tmpFile1 --password=file://${CTLDIR}/.tpgpass ${loginHost}

Please do the needful.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sftp command usage information

hello how do we get detailed information of an sftp command? for example when you type help on sftp, you get the available commands and their brief descriptions. What if you want to get detailed usage information, for example when you want to know what the command line options do..? in... (5 Replies)
Discussion started by: milhan
5 Replies

2. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

3. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

4. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

5. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

6. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

7. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

8. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

9. UNIX for Advanced & Expert Users

How to restrict user to sftp usage?

Hi everyone! I have a problem... I need to restrict user to sftp usage only from one computer to another... I mean that the user cannot login to the computer or even use sftp from other computer only from the one i allow. thanx for the help! (13 Replies)
Discussion started by: eliraza6
13 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question