View previous topic :: View next topic |
Author |
Message |
kodziek n00b


Joined: 13 Oct 2008 Posts: 12 Location: Zdunska Wola / Uc [Poland]
|
Posted: Mon Oct 04, 2010 9:57 am Post subject: sshfs - polaczenie zwrotne |
|
|
Potrzebuje zrealizowac nastepujace polaczenie:
z maszyny lokalnej po ssh do zdalnej, ze zdalnej podmontowanie po sshfs katalogu z maszyny lokalnej.
Niestety sshfs odmawia posluszenstwa:
Code: | root@koduina ~ <-; sshfs kodziek@192.168.0.17:/ /mnt/remote
Password:
remote host has disconnected |
Ale zwykle polaczenie zwrotne po ssh jest mozliwe
Code: | root@koduina ~ <-; ssh kodziek@192.168.0.17
Password:
Last login: Mon Oct 4 11:52:31 CEST 2010 from 192.168.0.5 on ssh
kodziek@koduina ~ (-; |
Ma ktos jakis pomysl dlaczego to moze nie dzialac? _________________ Don't you think if I were wrong I'd know it? |
|
Back to top |
|
 |
soban_ l33t


Joined: 27 Aug 2008 Posts: 668 Location: /home/soban
|
Posted: Mon Oct 04, 2010 10:15 am Post subject: Re: sshfs - polaczenie zwrotne |
|
|
kodziek wrote: | Code: | root@koduina ~ <-; sshfs kodziek@192.168.0.17:/ /mnt/remote
Password:
remote host has disconnected |
|
Chyba powinno byc: Code: | sshfs kodziek@192.168.0.17: /mnt/remote | bez "/" po ":". _________________ gg: 525600
Last edited by soban_ on Mon Oct 04, 2010 10:20 am; edited 2 times in total |
|
Back to top |
|
 |
kodziek n00b


Joined: 13 Oct 2008 Posts: 12 Location: Zdunska Wola / Uc [Poland]
|
Posted: Mon Oct 04, 2010 10:18 am Post subject: |
|
|
To nie ma znaczenia. Jesli montuje po sshfs na lokalnej maszynie zdalny katalog z "/" i bez dziala.
Zas po sshowaniu sie na zdalna nie dziala ani z "/" ani bez _________________ Don't you think if I were wrong I'd know it? |
|
Back to top |
|
 |
Raku Bodhisattva


Joined: 28 Feb 2004 Posts: 2374 Location: Poland
|
Posted: Mon Oct 04, 2010 10:29 am Post subject: Re: sshfs - polaczenie zwrotne |
|
|
soban_ wrote: | kodziek wrote: | Code: | root@koduina ~ <-; sshfs kodziek@192.168.0.17:/ /mnt/remote
Password:
remote host has disconnected |
|
Chyba powinno byc: Code: | sshfs kodziek@192.168.0.17: /mnt/remote | bez "/" po ":". |
A masz ze sobą jakieś wsparcie?
Code: |
SYNOPSIS
mounting
sshfs [user@]host:[dir] mountpoint [options]
|
@kodziek: masz odpowiednie uprawnienia do /mnt/remote? _________________ raku
Powered by Archlinux 
Last edited by Raku on Mon Oct 04, 2010 10:34 am; edited 1 time in total |
|
Back to top |
|
 |
soban_ l33t


Joined: 27 Aug 2008 Posts: 668 Location: /home/soban
|
Posted: Mon Oct 04, 2010 10:31 am Post subject: |
|
|
Faktycznie, dlatego napisalem chyba - bo nie mam pod reka sshfs. _________________ gg: 525600 |
|
Back to top |
|
 |
dylon Guru


Joined: 21 Mar 2005 Posts: 331 Location: Gliwice
|
Posted: Mon Oct 04, 2010 3:09 pm Post subject: |
|
|
sshfs ma obiekcje przy montowaniu do katalogu gdzie już są jakieś pliki. Należy użyć opcji "-o nonempty ". _________________ Maciej Dylski |
|
Back to top |
|
 |
kodziek n00b


Joined: 13 Oct 2008 Posts: 12 Location: Zdunska Wola / Uc [Poland]
|
Posted: Mon Oct 04, 2010 10:32 pm Post subject: |
|
|
@Raku: chmod 777 + wlasciciel kodziek:users
@dylon: katalog /mnt/remote jest pusty _________________ Don't you think if I were wrong I'd know it? |
|
Back to top |
|
 |
dylon Guru


Joined: 21 Mar 2005 Posts: 331 Location: Gliwice
|
Posted: Tue Oct 05, 2010 4:14 am Post subject: |
|
|
kodziek wrote: |
@dylon: katalog /mnt/remote jest pusty |
Na pewno? Może jest tam jakiś ukryty plik/katalog?
Poza tym, co mówi dmesg i logi? _________________ Maciej Dylski |
|
Back to top |
|
 |
mistix Apprentice


Joined: 27 Dec 2006 Posts: 247 Location: Gliwice / Poland
|
Posted: Tue Oct 05, 2010 8:23 am Post subject: |
|
|
kodziek wrote: | @Raku: chmod 777 + wlasciciel kodziek:users
@dylon: katalog /mnt/remote jest pusty |
Ja byłbym ostrożny z tym 777 po co tak dużo uprawnień rozdawać na lewo i prawo ? Nie lepiej 740 albo 700 ? _________________ Cuda się zdarzają. Co potwierdzi każdy programista. |
|
Back to top |
|
 |
kodziek n00b


Joined: 13 Oct 2008 Posts: 12 Location: Zdunska Wola / Uc [Poland]
|
Posted: Tue Oct 05, 2010 8:30 am Post subject: |
|
|
Jest pusty, bo go specjalnie tworzylem na ta potrzebe. Na dowod:
Code: | root@neo ~ <-; ls -al /mnt/remote
razem 0
drwxrwxrwx 2 kodziek users 48 10-04 10:04 .
drwxr-xr-x 11 root root 368 10-04 10:04 .. |
log z messages (nic nie pokazuje przy sshfs)
Code: | Oct 5 10:26:25 neo sshd[7069]: SSH: Server;Ltype: Version;Remote: 192.168.0.17-39750;Protocol: 2.0;Client: OpenSSH_5.6p1-hpn13v10
Oct 5 10:26:29 neo sshd[7069]: Accepted keyboard-interactive/pam for root from 192.168.0.17 port 39750 ssh2
Oct 5 10:26:29 neo sshd[7069]: pam_unix(sshd:session): session opened for user root by (uid=0) |
w dmesgu tylko tyle odnosnie polaczen
Code: | [ 26.353342] eth0: no IPv6 routers present |
i lohoho... zamontowalem z nonempty, a teraz dziala i bez tego... takze dzieki za pomoc, a rozwiazania sam nie znam. Po prostu sie naprawilo. Dzieki _________________ Don't you think if I were wrong I'd know it? |
|
Back to top |
|
 |
|