Your best friend for file transfer.

sftp fails in 10.5.5 (7 posts)
- Started 14 years ago by enozkan
- Latest reply 14 years ago from enozkan
-
enozkan Member
-
Scott McGuire Administrator
Hi,
Before I try to give advice or ask for more information, I'd like to double-check that I've understood correctly.
You have tried to SFTP and SSH to the exact same server, and SSH works, but SFTP does not?
Thanks,
Scott McGuire
Fetch Softworks -
enozkan Member
Yep, that is exactly what I see.
Engin
-
Scott McGuire Administrator
Hi,
We'd like to see the output from both the command line SSH and the command-line SFTP to better understand what's going on.
Could you please do the following? In the Terminal, type:
ssh -v username@hostname
And after you successfully connect (or get an error), send us all the output starting with the command you typed.
Then, still in Terminal, type:
sftp -v username@hostname
And after you successfully connect (or get an error), send us all the output starting with the command you typed.
If you would rather not post that information here, you can email it to:
bb at fetchsoftworks dot com
Thanks,
Scott McGuire
Fetch Softworks -
enozkan Member
Hi,
I just managed to get fetch to sftp to my iMac, and I did it by moving away my .cshrc file. That must have been getting openssh on the Mac confused. I thought I had a very harmless .cshrc (the offending bit -setting the DISPLAY variable for X11- is pasted below), any improvements to fix it are appreciated.
Thank you,
Engin
if (! $?DISPLAY && ! $?SSH_CONNECTION ) then
setenv DISPLAYps -xww | grep -F X11.app | awk '{print $NF}' | grep -e ":[0-9]"
.0
if ( $DISPLAY == '.0' )then
setenv DISPLAY :0.0
endif
echo "DISPLAY has been set to $DISPLAY"
endif -
Scott McGuire Administrator
Hi,
I'm glad to hear you've fixed the problem.
No, I'm sorry, I don't have any thoughts on why that .cshrc file might have been causing a problem or how to improve it.
Best,
Scott McGuire
Fetch Softworks -
enozkan Member
Thank you for your help.
Inserting the following in .cshrc took care of all my sftp/fetch problems:# For non-interactive shells, such as for sftp
if ( ! $?prompt ) then
exit 0
endif
# end of non-interactive shell set up
- Page 1
Since I've upgraded to OS X 10.5.5 (I think), I have failed to sftp to my computer. I can fetch-sftp to other computers from it, but it does not accept incoming connections (even though fetch is allowed in the firewall settings). Actually no sftp to this computer works (securefx also fails), but ssh'ing or scp'ing to it works just fine.
How can I open up sftp, so that I can use fetch again.
Thanks,
Posted 14 years ago #