Debian Jessie Autofs SSHFS nefunguje

mln

Debian Jessie Autofs SSHFS nefunguje
« kdy: 17. 04. 2017, 15:22:41 »
Mám Debian Jessie a chcem sa pomocou autofs pripojiť na vzialenom SSH serveri sa chcem prihlásiť ako user martin, bez uspechu.

Skusil som sam najsť príčinu, na miestnom PC som v root terminali ručne skúsil zadať
Kód: [Vybrat]
service autofs stop
automount -f -v
tak všetko fungovalo.

Ked som chcel aby autofs sam mountoval SSHFS, tak som v root terminali zadal
Kód: [Vybrat]
systemctl start autofs.service
V zložke /net na lokalnom pc sa sice objavila zložka home@debianpc, ale neda sa do nej pristupovať (adresat alebo subor neexistuje)
Pozrel som var log syslog a tam píše
Kód: [Vybrat]
Apr 17 14:47:07 debnoteb systemd[1]: Started LSB: Automounts filesystems on demand.
Apr 17 14:47:07 debnoteb automount[19882]: attempting to mount entry /net/.hidden
Apr 17 14:47:07 debnoteb automount[19882]: key ".hidden" not found in map source(s).
Apr 17 14:47:07 debnoteb automount[19882]: failed to mount /net/.hidden
Apr 17 14:47:07 debnoteb automount[19882]: attempting to mount entry /net/home@debianpc
Apr 17 14:47:12 debnoteb automount[19882]: >> read: Connection reset by peer
Apr 17 14:47:12 debnoteb automount[19882]: mount(generic): failed to mount sshfs#martin@192.168.1.100:/home/martin (type fuse) on /net/home@debianpc
Apr 17 14:47:12 debnoteb automount[19882]: failed to mount /net/home@debianpc

subor auto.master vyzerá takto
Kód: [Vybrat]
/net /etc/auto.misc uid=1000, gid=1000, --ghost, --timeout=60subor auto.misc vyzera takto
Kód: [Vybrat]
home@debianpc   -fstype=fuse,ro,noatime,allow_other,port=51654,IdentityFile=/home/martin/.ssh/id_rsa :sshfs\#martin@192.168.1.100
nevedel by mi niekto poradiť prečo to nefunguje ? Skusil som hladať čo znamena ten key .hidden, ale akosi netuším čo s tým.  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747941 ďakujem


o

Re:Debian Jessie Autofs SSHFS nefunguje
« Odpověď #1 kdy: 18. 04. 2017, 10:57:18 »
Zacal bych od toho 'Connection reset by peer'.

Vyzkousej zda se ti podari pripojit pres sshfs napr:

Kód: [Vybrat]
sshfs martin@192.168.1.100:/home/martin ~/.martin -p 51654

mln

Re:Debian Jessie Autofs SSHFS nefunguje
« Odpověď #2 kdy: 18. 04. 2017, 13:11:02 »
Ked som zadal tento príkaz nalokalnom PC ako usser martin a aj ako root, tak sshfs sa bez problémov pripojil a fusermountom soh ho potom aj bez problemov odpojil
Kód: [Vybrat]
sshfs martin@192.168.1.100:/home/martin ~/.martin -p 51654
skôr si myslím že je problém niekde na urovni autofs.

Kyblík

Re:Debian Jessie Autofs SSHFS nefunguje
« Odpověď #3 kdy: 28. 04. 2017, 08:42:56 »
Povolenie root hesla cez SSH

/etc/ssh/sshd-config
PermitRootLogin without-password
zmenit na:
PermitRootLogin yes

Sten

Re:Debian Jessie Autofs SSHFS nefunguje
« Odpověď #4 kdy: 28. 04. 2017, 12:50:22 »
Můj tip je, že to sshfs použije špatný (výchozí) port, ale chtělo by to odposlechnout přes Wireshark

Povolenie root hesla cez SSH

/etc/ssh/sshd-config
PermitRootLogin without-password
zmenit na:
PermitRootLogin yes

Tak to určitě ne