The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)


share files between two ubuntu machines: forget samba! use ssh, in nautilus

man, samba is a nightmare!

we have an old ubuntu 8.10 server where we run jboss as its own user, jboss.

to allow us to edit files on that server through the file browser nautilus, i tried configuring samba for hours, with no luck.

then i read this:
share folders between two Ubuntu 12.04 machines

the super simple and safer solution is to use SSH!

i first tried connecting in nautilus, without doing any configuration:
Files > Connect to server:

but it wouldn't connect, so i checked the ssh log:
cat /var/log/auth.log

and i saw this:
Oct 22 13:29:22 myserver sshd[17101]: Accepted password for jboss from port 40905 ssh2
Oct 22 13:29:22 myserver sshd[17104]: subsystem request for sftp
Oct 22 13:29:22 myserver sshd[17104]: error: subsystem: cannot stat /usr/libexec/openssh/sftp-server: No such file or directory
Oct 22 13:29:22 myserver sshd[17104]: subsystem request for sftp failed, subsystem not found

so, i tried finding sftp-server:
locate sftp-server


so, here's all i had to do to get it to work:
sudoedit /etc/ssh/sshd_config

the last line looked like this:
Subsystem      sftp    /usr/libexec/openssh/sftp-server

change that to this:
Subsystem      sftp    /usr/lib/openssh/sftp-server

then restarted ssh:
sudo /etc/init.d/ssh restart

! :)

No comments:

Post a Comment