Operating System - OpenVMS
1753373 Members
5037 Online
108792 Solutions
New Discussion юеВ

Re: Help with SFTP from VMS to Windows

 
SOLVED
Go to solution
Steven Schweda
Honored Contributor
Solution

Re: Help with SFTP from VMS to Windows

> Usage: sftp2 [-D debug_level_spec] [...]

Where's your "debug_level_spec"? (Note that
I didn't bother with the "-D" stuff, which
may explain something.)

> So it apparently ignores the "-B" switch.

Or it thinks that the next (big,
funny-looking) token is the debug_level_spec.

> [...] [-B batchfile] [...]

See the space in there?

> I thought once the authentication was
> solved, the rest would be easy...

As I always say, everything's complicated.
(But this could actually be close to easy.)
VMS Unix Admin
Advisor

Re: Help with SFTP from VMS to Windows

Well that looks like it was the answer!

I removed the "-D" from the command line and it worked. I thought if I just used the -D switch and did not specify a level that it would pick a good default. I have no idea what the debug level numbers equate to in terms of verbosity.

$ SFTP "-B" SFTP_TMP.SLF "sftpMayo@essenceweb.isf.com"
sftp> pwd
/
sftp> ls -l
drw------- 1 no-user no-group 0 Jan 30 11:51 .ssh
drw------- 1 no-user no-group 0 Jan 28 12:18 .ssh2
-rw------- 1 no-user no-group 1516 Dec 22 08:23 test.txt
-rw------- 1 no-user no-group 240 Dec 22 08:57 test2.txt
-rw------- 1 no-user no-group 0 Dec 10 09:56 This is the root directory for sftpMayo
sftp> exit
ssh_pipe_stream_destroy
$!
$ exit
D_DEV job terminated at 30-JAN-2009 22:27:44.03

Accounting information:
Buffered I/O count: 1364 Peak working set size: 9104
Direct I/O count: 345 Peak virtual size: 184688
Page faults: 810 Mounted volumes: 0
Charged CPU time: 0 00:00:00.17 Elapsed time: 0 00:00:03.77

Thanks for the help!!!
Steven Schweda
Honored Contributor

Re: Help with SFTP from VMS to Windows

> I have no idea what the debug level numbers
> equate to in terms of verbosity.

Join the club. It could be documented
somewhere, I suppose, but the local ("-h")
help is approximately useless.

Among the many nice things about DCL is its
no-extra-effort ability to complain about
missing or extra parameters. General
consistency is good too. Having to worry
about whether a space is needed or tolerated
or prohibited between an option and its value
is just another bonus you get with typical
UNIX software, into which bin this stuff
seems to fall. (Sigh.)