Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshfs - polaczenie zwrotne
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
kodziek
n00b
n00b


Joined: 13 Oct 2008
Posts: 12
Location: Zdunska Wola / Uc [Poland]

PostPosted: Mon Oct 04, 2010 9:57 am    Post subject: sshfs - polaczenie zwrotne Reply with quote

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
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 668
Location: /home/soban

PostPosted: Mon Oct 04, 2010 10:15 am    Post subject: Re: sshfs - polaczenie zwrotne Reply with quote

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
View user's profile Send private message
kodziek
n00b
n00b


Joined: 13 Oct 2008
Posts: 12
Location: Zdunska Wola / Uc [Poland]

PostPosted: Mon Oct 04, 2010 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Mon Oct 04, 2010 10:29 am    Post subject: Re: sshfs - polaczenie zwrotne Reply with quote

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
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 668
Location: /home/soban

PostPosted: Mon Oct 04, 2010 10:31 am    Post subject: Reply with quote

Faktycznie, dlatego napisalem chyba - bo nie mam pod reka sshfs.
_________________
gg: 525600
Back to top
View user's profile Send private message
dylon
Guru
Guru


Joined: 21 Mar 2005
Posts: 331
Location: Gliwice

PostPosted: Mon Oct 04, 2010 3:09 pm    Post subject: Reply with quote

sshfs ma obiekcje przy montowaniu do katalogu gdzie już są jakieś pliki. Należy użyć opcji "-o nonempty ".
_________________
Maciej Dylski
Back to top
View user's profile Send private message
kodziek
n00b
n00b


Joined: 13 Oct 2008
Posts: 12
Location: Zdunska Wola / Uc [Poland]

PostPosted: Mon Oct 04, 2010 10:32 pm    Post subject: Reply with quote

@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
View user's profile Send private message
dylon
Guru
Guru


Joined: 21 Mar 2005
Posts: 331
Location: Gliwice

PostPosted: Tue Oct 05, 2010 4:14 am    Post subject: Reply with quote

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
View user's profile Send private message
mistix
Apprentice
Apprentice


Joined: 27 Dec 2006
Posts: 247
Location: Gliwice / Poland

PostPosted: Tue Oct 05, 2010 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message
kodziek
n00b
n00b


Joined: 13 Oct 2008
Posts: 12
Location: Zdunska Wola / Uc [Poland]

PostPosted: Tue Oct 05, 2010 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum