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:
ssh://jboss@myserver
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 10.0.0.155 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
/usr/lib/sftp-server
/usr/lib/openssh/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
! :)
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment