SuperEdi

User: Guest

Search

Please use the
Bug Report Form
if you think you found a software defect.

Use the Contact Form
to send a personal message to Wolfgang.

RSS Feed RSS Feed

Other boards:
Juke
QBrowser
Raduga (English)
Song Requester

SCP Support

Posted on: SuperEdi

From Message

Jeff Marsh

2004-10-19 14:35:41

SCP Support

Hey there,

Apologize if this duplicates something that has already been discussed - I haven't had a chance to have a detailed look through the forum archives. However, something that would really set your application apart from the pack would be to have a built in SCP client in addition to the FTP client. There are lots of editors with FTP but I haven't found one with SCP and in the environment in which I work FTP is considered too in secure - hence for server side work I'm stuck sshing in and running VI or having the SCP the files back and forth between my workstation myself. Perhaps not too difficult a task to say integrate Putty into the product (as has been done with WinSCP) and offer SCP support and something that would win even more accolades for this already excellent product!

\|/ Jeff Marsh \|/

Wolfgang Loch

2004-10-19 16:03:03

Re: SCP Support

Sounds like a good idea. Unfortunately I don't know much about CSP. Maybe you can point me to a place with more information?

For example, is it possible to specify an SCP file name using an URL, like ftp://servername/pathname?

Is it possible to set up an SCP server on Windows for testing purposes?

BTW. You could also try to use SFTP, which is basically FTP over SSH. If you set up an SSH tunnel to the remote machine, you can use SuperEdi with FTP on a local port.

Jeff Marsh

2004-10-19 19:38:53

Re: SCP Support

Hey Wolfgang,

Thanks for explaining SFTP - I had heard the acronym but hadn't investigated it - I'm definitely going to go poking around....don't know if the tunnel idea will pan out due to the number of devices I need to connect to - ie maintaining the tunnels might be more work than my current work arounds.

The best source of information on SSH/SCP implementation is probably found at the Putty homepage:

http://www.chiark.greenend.org.uk/~sgtatham/putty/

There is a section of the FAQ that talks about using Putty to make an SSH connection for another program:

http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#SA.4

As well as quite a long list of software that uses Putty in this way:

http://www.chiark.greenend.org.uk/~sgtatham/putty/links.html

Here is a URL for a pretty standard command line SCP invokation that shows you can specify file names on the remote system - as far as a URL goes - I've not seen anything like that:

http://www.hmug.org/man/1/scp.html

As far as and SCP server for windows goes, there isn't much out there (SSH and SCP are not well supported in Windows at all which is unfortunate). There is this - but it is a bit ugly in that it is Cygwin based:

http://www.devguy.com/fp/scp/

\|/ Jeff \|/

Wolfgang Loch

2004-10-19 21:06:33

Re: SCP Support

Thank you for all the info. Is it true that SCP does not have a 'dir' command? I couldn't find anything like this in the man page. But WinSCP appears to have a way to browse directories on the server.

Otherwise I think it should be possible for SuperEdi to save the current document to a temporary file and then transfer it to the SCP server using the pscp.exe command-line tool.

Maybe I will have to invent an URL protocol so that SuperEdi recognized that you wish to use SCP. The URL could look like this:
scp://user@host1:file
At some point in time you will have to be asked for a password unless pscp finds a certificate to identify you.

Jeff Marsh

2004-10-19 23:42:21

Re: SCP Support

No thanks to you for letting me put an idea in your head! In my mind, it seems reasonable that SCP doesn't have a dir command as in some respects it isn't really a protocol in it's own right (like Telnet or FTP) but more of a variation of SSH?

Would it also be able to doe the reverse operation - ie to be able to open a file from a remote server by grabbing it and placing it in a temporary file. That way you could grab something, modify it, and push it back to the server without the user having to do the transfering manually.

Of all the applications that use Putty, I have to say the WinSCP is the nicest I've seen - a really pro job. However, how it works I have no idea. The only suggestion that I can offer is that there is a "single command" as well as an "interactive" mode in SSH - I think command line SCP uses single command mode - perhaps WinSCP uses interactive mode. (I know that doesn't make a lot of sense - problem is that I don't understand this aspect of SSH well myself)

\|/ Jeff \|/

Wolfgang Loch

2004-10-20 07:31:02

Re: SCP Support

Of cause it should work in both directions. If you enter a file name such as scp://user@host1:file in the address bar, SuperEdi would download it transparently to a temporary file and open the content in the editor window. When you click "Save" it will write the content to a temporary file and upload it to the original location.

So far so good. However, if there is no way to list a directory on the server, there will be no way to select a file other than entering the full name into the address bar.

Wolfgang Loch

2004-11-20 23:25:54

Re: SCP Support

I have made some scripts for SCP upload and download. You can get these scripts from the SuperEdi download page
http://www.wolosoft.com/en/superedi/download.html
(look for SCP.zip)

Extract the zip file into the SuperEdi/Scripts directory and adjust the parameters host, user name and directory names in the .js files. Now you can upload any file below the localDir directory to the corresponding directory on the server.

Jeff Marsh

2004-11-24 18:11:06

Re: SCP Support

Hey Wolfgang,

Thank you so much! I just got a chance to download the scripts this morning and play around with them. They should work really well for my purposes! Your help is much appreciated!

\|/ Jeff \|/

Post a reply to this message: