Getting Dreamweaver to connect to SFTP via vsftpd
I seem to be running into a little trouble getting Dreamweaver to connect to my home computer from work via SFTP option within Dreamweaver. I have no problems connecting to my machine from my Mac OSX machine using the sftp command. I was wondering what if anything I might be missing and if anyone else has had this problem and what they did to resolve it. Thanks, jay
On 9/9/05, Jay Paulson <jpaulson@sedl.org> wrote:
I seem to be running into a little trouble getting Dreamweaver to connect to my home computer from work via SFTP option within Dreamweaver. I have no problems connecting to my machine from my Mac OSX machine using the sftp command. I was wondering what if anything I might be missing and if anyone else has had this problem and what they did to resolve it.
Thanks, jay
So, the title says vsftpd, but in the text you say sftp. So, which one? If using sftp, check the options of DreamWeaver if you can tell it to use ver. 2 of the protocol. I don't know DreamWeaver on Mac, but on my win machine it helped. If vsftpd - be aware that this is just a normal ftp server. So you need port 21 open, etc. Cheers -- -- Svetoslav Milenov (Sunny)
I seem to be running into a little trouble getting Dreamweaver to connect to my home computer from work via SFTP option within Dreamweaver. I have no problems connecting to my machine from my Mac OSX machine using the sftp command. I was wondering what if anything I might be missing and if anyone else has had this problem and what they did to resolve it.
So, the title says vsftpd, but in the text you say sftp. So, which one?
If using sftp, check the options of DreamWeaver if you can tell it to use ver. 2 of the protocol. I don't know DreamWeaver on Mac, but on my win machine it helped.
If vsftpd - be aware that this is just a normal ftp server. So you need port 21 open, etc.
Well in the vsftp.conf file I setup useing ssl login and ssl data transmission to yes. In using regular ftp command I can't connect to the ftp server but using the sftp command I can connect. I also do have port 21 open etc (I don't need port 20 open do I? I remember reading something about that but not too sure). Sorry for the confusing title. =/ I've got vsftpd server running on my machine at home configured with the ssl options. jay
On 9/9/05, Jay Paulson <jpaulson@sedl.org> wrote:
Well in the vsftp.conf file I setup useing ssl login and ssl data transmission to yes. In using regular ftp command I can't connect to the ftp server but using the sftp command I can connect. I also do have port 21 open etc (I don't need port 20 open do I? I remember reading something about that but not too sure).
Sorry for the confusing title. =/ I've got vsftpd server running on my machine at home configured with the ssl options.
jay
sftp has nothing to do with vsftpd. Even if you stop vsftpd, you still will be able to connect with sftp, if openssh is installed, which is by default. So, looks like your problems are with the proper config of vsftpd. Try to disable all security stuff in vsftpd and see if you can connect using a regular ftp client (you can use your browser as well if you type an address like ftp://yourserver). If this fails, this means that your vsftpd is not well configured. But if I recall correctly, the latest versions of DreamWeaver (for win) had the possibility to use sftp. Check to see if your Mac version has it as well, and if it can work for you. Cheers -- Svetoslav Milenov (Sunny)
Well in the vsftp.conf file I setup useing ssl login and ssl data transmission to yes. In using regular ftp command I can't connect to the ftp server but using the sftp command I can connect. I also do have port 21 open etc (I don't need port 20 open do I? I remember reading something about that but not too sure).
Sorry for the confusing title. =/ I've got vsftpd server running on my machine at home configured with the ssl options.
jay
sftp has nothing to do with vsftpd. Even if you stop vsftpd, you still will be able to connect with sftp, if openssh is installed, which is by default.
So, looks like your problems are with the proper config of vsftpd. Try to disable all security stuff in vsftpd and see if you can connect using a regular ftp client (you can use your browser as well if you type an address like ftp://yourserver). If this fails, this means that your vsftpd is not well configured.
But if I recall correctly, the latest versions of DreamWeaver (for win) had the possibility to use sftp. Check to see if your Mac version has it as well, and if it can work for you.
You're right, of course. :) I went in and stopped the vsftpd process and was still able to connect via sftp from my Mac OSX terminal. In Dreamweaver for the Mac there is the option "Use Secure FTP (SFTP)" and I have that checked. It comes back to me with "cannot make connection to host. Your login or password is incorrect." What's strange is that my login and password are the same for when I do the command line. However, I did notice that when I do the command line it's $sftp xxx.xxx.xxx.xxx and it then prompts me for a password. Some how it knows my username, which I find strange. jay
On 9/9/05, Jay Paulson <jpaulson@sedl.org> wrote:
You're right, of course. :) I went in and stopped the vsftpd process and was still able to connect via sftp from my Mac OSX terminal. In Dreamweaver for the Mac there is the option "Use Secure FTP (SFTP)" and I have that checked. It comes back to me with "cannot make connection to host. Your login or password is incorrect." What's strange is that my login and password are the same for when I do the command line. However, I did notice that when I do the command line it's $sftp xxx.xxx.xxx.xxx and it then prompts me for a password. Some how it knows my username, which I find strange.
jay
It is not strange. ssh and sftp will use the current logged in username to try to connect if nothing else is specified. To set another username, use -l option. Or: $sftp otheruser@myserver. So, anyway, we found out that the problem is with your DreamWeaver configuration. Check everything there. Also, you may elevate the log level of your sshd server at home, so you can see what user/pass DreamWeaver is using to try to connect. Cheers -- Svetoslav Milenov (Sunny)
You're right, of course. :) I went in and stopped the vsftpd process and was still able to connect via sftp from my Mac OSX terminal. In Dreamweaver for the Mac there is the option "Use Secure FTP (SFTP)" and I have that checked. It comes back to me with "cannot make connection to host. Your login or password is incorrect." What's strange is that my login and password are the same for when I do the command line. However, I did notice that when I do the command line it's $sftp xxx.xxx.xxx.xxx and it then prompts me for a password. Some how it knows my username, which I find strange.
jay
It is not strange. ssh and sftp will use the current logged in username to try to connect if nothing else is specified. To set another username, use -l option. Or: $sftp otheruser@myserver.
So, anyway, we found out that the problem is with your DreamWeaver configuration. Check everything there. Also, you may elevate the log level of your sshd server at home, so you can see what user/pass DreamWeaver is using to try to connect.
I got it to work. It had nothing to do with how Dreamweaver is configured. It has everything to do with how sshd is configured. Here's what you need to do. Go to the /etc/ssh/sshd_config and find PasswordAuthentication and set that to yes. Then restart the sshd demon. Here's Macromedia's site about it. http://www.macromedia.com/cfusion/knowledgebase/index.cfm? event=view&id=KC.tn_19491&extid=tn_19491&dialogID=62492880&iterationID=1 &sessionID=9630a82fb755283c12d1&stateID=0+0+15056731&mode=simple I just wonder what changing the PasswordAuthentication from no to yes does. Anyone know? Thanks! jay
Jay Paulson wrote:
<snip>
I just wonder what changing the PasswordAuthentication from no to yes does. Anyone know?
Just what it says, can you use username/password to log in, or do you have to use a ssh key? The default is 'yes', but in my sshd_config file it is changed to 'no', the reason given being to "disable tunneled clear text passwords...." BTW, you *did* change PermitRootLogin to 'no', did you not? The default is 'yes' (read the comments at teh top of the config file, all those commented-out fields are the default values).
participants (3)
-
Darryl Gregorash
-
Jay Paulson
-
Sunny