Index of /software/sftp
Name Last modified Size Description
Parent Directory -
sftp-0.9.9-05112001.zip 21-Mar-2007 00:53 878K
sftp 0.9.9 - win32
Compiled with cygwin on Win NT sp6a.
Tested: Win NT 4 (sp6a)
Notes:
The archive contains just stuff enough to use ssh and sftp from
a PC without cygwin installed:
Two gotchas
1) is that sftp.exe will need ssh.exe to be in the path
when it runs. So you will have to install these files into a directory
in you path. (or add the directory to your path)
2) you MUST have a %HOME% environment variable set. This is the directory
under which ssh is going to create the .ssh dir and associated files.
2.1) If you have cygwin installed, or you are in an MS DOMAIN, then some
extra quirks might bite you.
ie if you open a Command Prompt, you should be able to get something like:
C:\users> echo %HOME%
c:\users\dpinson
C:\users>
If not, set it by hand (set home=c:\users\dir), or put in in your autoexec.bat,
or via "System Properties|Environment". Exactly which depends on if it is win9x,
or NT.
Trouble Shooting
* After typing "sftp hostname" it just seems to hang forever?
Make sure ssh.exe (and the dlls) can be found in the current path.
Try changing to the install directory and doing the following:
z:\sftp\> set PATH=%PATH%;.
z:\sftp\> sftp hostname
* I get prompted for "administrator@hostname's password:"?
pass the -l option to sftp to select which remote user to connect
as:
z:\sftp\> sftp -l username remotehost
or
z:\sftp\> sftp username@remotehost
* It complains about not being able to create //.ssh?
Set your %home% environment variable.
* Setting %home% does not work for me?
* I have cygwin installed and it always wants to write to /home/administrator/.ssh?
(or /home/someothername/.ssh
Yeah, well if you have cygwin installed, then you have to deal with how
the user security mapping is done. If you don't want to deal with it,
just create c:\path to cygwin\home\administrator.
If you have cygwin installed, I pretty much expect you know what you are doing,
and hence understand why this is happening.
These errors with .ssh are not fatal. They mean that you will have to ok
the host each connection (since it cannot generate known_hosts) and you
cannot make a set of keys for logging in without a password. That may or
may not be a problem for you.
* Other problems?
Try using plain ssh and see if you can log into the target host.
If that does not work as expected, then there are other problems
that need to be fixed first.
Compiling openssl/openssh/sftp (ie I want to build the server half...)
I used cygwin, I have no idea about any other compilers. If you are
going to use cygwin to build, then openssl and openssh are included
with your sygwin install.
sftp compiles easily, you should be able to simply do ./configure
and make with the current cygwin.
If you have already setup your win32 box to allow logins, you might
be able to try the server part of sftp. Let me know if it works.
* I can't log into the server it says:
> sftp dpinson@192.168.1.1
bash: sftpserv: command not found
read: connection reset by peer
sftp>
Two possibilities:
1) The server is using openssh, which includes a sftp server that
is not compatible with this client
see Readme.ssh
2) The sftpserv program is not in you path when sftp connects to the
server. If the server is using a compatible sftp server:
> ssh dpinson@smallfry
dpinson@smallfry's password:
smallfry ~$ which sftpserv
/usr/bin/sftpserv <--- this is what you should get
(ie any location is fine as long as it is found)
But you might get:
/usr/bin/which: no sftpserv in (/bin:/usr/bin:/usr/local/bin) <--- This is bad
in this case, is the server even installed?
smallfry ~$ locate sftpserv
/opt/bin/sftpserv
Ok, edit your .profile and put sftpserv into tour path.
This works even if your sysadmin won't install sftp. get a binary from
http://www.xbill.org/sftp and put the sftpserv in say ~/bin, (including
~/bin in your path). Then you should be able to connect.
If your sysadmin in doesn't trust the users, then /home may be setup
so that files sorted there cannot be executed. If that is the case, then
you will have to talk to your admin. Either get sftpserv install in a
system directory, or you are out of luck (if they are this security
conscious, then you should have little trouble getting sftpserv installed)
David Pinson
dpinson@materials.unsw.edu.au