- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- sftp on openvms
Operating System - OpenVMS
1822158
Members
3485
Online
109640
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 11:15 AM
тАО10-05-2010 11:15 AM
Re: sftp on openvms
So we all agree that ssh/sftp command-line argument parsing is suboptimal,
back to topic:
CHANDRASEKARAN , do a verbose sftp:
sftp -"v" user@host
The resulting output should show at which point the error occurs.
back to topic:
CHANDRASEKARAN , do a verbose sftp:
sftp -"v" user@host
The resulting output should show at which point the error occurs.
http://www.mpp.mpg.de/~huber
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 12:55 PM
тАО10-05-2010 12:55 PM
Re: sftp on openvms
> what does "SHOW SYMBOL SFTP" return ?
Don't forget "show logical DCL$PATH".
Don't forget "show logical DCL$PATH".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2010 05:12 PM
тАО10-20-2010 05:12 PM
Re: sftp on openvms
Hi,
If you're missing SFTP as symbol, that's normal. However, you can have it defined for you by invoking @SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM
$ sftp*2 :== $'f$edit("sys$system:tcpip$ssh_sftp2.exe","upcase")'
And here's an example of using BATCH mode SFTP.
$ SET VERIFY
$! SFTP_BATCH.COM to submit SFTP to batch
$!
$! Set default to where SFTP.INPUT is located, otherwise,
$! SFTP command would have to use full path in unix style:
$! i.e. /sys$sysdevice/h_so/test/sftp.input
$ set def SYS$SYSDEVICE:[H_SO.TEST]
$!
$! Following gets output of the sftp commands to the log, without it,
$! none of the sftp output will be logged:
$ define/user sys$input sys$command
$!
$! The following logicals were for various tests:
$! define/process sys$output SYS$SYSDEVICE:[H_SO.TEST]sftp.output
$! define/process sys$error SYS$SYSDEVICE:[H_SO.TEST]sftp.output
$!
$! Following is the correct syntax for 5.4 ECO5 and higher:
$ sftp -"B" sftp.input localhost
$!
$! Following is the correct syntax for 5.4 ECO4 and below:
$! sftp -b sftp.input localhost
$!
$ exit
Where SFTP.INPUT file contains the following:
pwd
ls
get foosadjfhlo.txt
quit
Also note that SFTP.INPUT could contain multiple
open
close
with sftp commands inbetween:
i.e.
open host1
ls
get myfile.txt
close
open host2
get yourfile.txt
close
open host3
put myfile.txt yourfile.txt
close
quit
Regards,
Jay So
If you're missing SFTP as symbol, that's normal. However, you can have it defined for you by invoking @SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM
$ sftp*2 :== $'f$edit("sys$system:tcpip$ssh_sftp2.exe","upcase")'
And here's an example of using BATCH mode SFTP.
$ SET VERIFY
$! SFTP_BATCH.COM to submit SFTP to batch
$!
$! Set default to where SFTP.INPUT is located, otherwise,
$! SFTP command would have to use full path in unix style:
$! i.e. /sys$sysdevice/h_so/test/sftp.input
$ set def SYS$SYSDEVICE:[H_SO.TEST]
$!
$! Following gets output of the sftp commands to the log, without it,
$! none of the sftp output will be logged:
$ define/user sys$input sys$command
$!
$! The following logicals were for various tests:
$! define/process sys$output SYS$SYSDEVICE:[H_SO.TEST]sftp.output
$! define/process sys$error SYS$SYSDEVICE:[H_SO.TEST]sftp.output
$!
$! Following is the correct syntax for 5.4 ECO5 and higher:
$ sftp -"B" sftp.input localhost
$!
$! Following is the correct syntax for 5.4 ECO4 and below:
$! sftp -b sftp.input localhost
$!
$ exit
Where SFTP.INPUT file contains the following:
pwd
ls
get foosadjfhlo.txt
quit
Also note that SFTP.INPUT could contain multiple
open
close
with sftp commands inbetween:
i.e.
open host1
ls
get myfile.txt
close
open host2
get yourfile.txt
close
open host3
put myfile.txt yourfile.txt
close
quit
Regards,
Jay So
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 02:27 PM
тАО10-21-2010 02:27 PM
Re: sftp on openvms
I forgot to mention that ssh/sftp/scp in BATCH mode REQUIRES "passwordless" authentication such as publickey or hostbased:
From Tru64 Uninx # man SFTP
-B batchfile
Reads commands from a file instead of standard input. Because this mode
is intended for scripts or cron jobs, the sftp2 command will not try to
interact with the user, which means that only authentication methods
that do not use passwords will work. In batch mode, a failure to
change the current working directory will cause the sftp2 command to
abort. Other errors are ignored.
I believe this also means that keys with passphrases will also not work with batch mode...
From Tru64 Uninx # man SFTP
-B batchfile
Reads commands from a file instead of standard input. Because this mode
is intended for scripts or cron jobs, the sftp2 command will not try to
interact with the user, which means that only authentication methods
that do not use passwords will work. In batch mode, a failure to
change the current working directory will cause the sftp2 command to
abort. Other errors are ignored.
I believe this also means that keys with passphrases will also not work with batch mode...
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP