Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'BBEdit remote files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
BBEdit remote files
Authored by: datasmid on Feb 06, '03 04:13:23AM

I like BBEdit to browse any textfile on my network
so on linux boxes I have this alias defined (for tcsh)

alias bbedit "ssh user@mac bbedit <"

On my Mac I have Remote Login enabled in Sharing Prefpanel
and on Mac my, ssh-keygen generated on linux, public key in ~/.ssh/authorized_keys2

Whenever I want to open a file on Linux I do

$ bbedit file

And it loads through the ssh-tunnel in BBEdit

[ Reply to This | # ]
BBEdit remote files
Authored by: i5ao on Oct 21, '04 06:12:34PM

Awesome tip!

But it opens the file in an untitled window in BBEdit on the Mac side. With BBEdit 8's command line tool you can do one better. It accepts sftp urls, so I modified your shell script as follows:

# Usage file
ssh me@machostname bbedit sftp://me@`hostname`/`pwd`/$1

Save this file as executable on your remote Linux/BSD box as, say, somewhere in your $PATH.

Then, while logged in on that box, to edit a file there called "foo.c" do this:

% foo.c

On your Mac, BBEdit will open up the file on the remote machine. Edit and save in-place.

[ Reply to This | # ]