Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Montowanie ssh przez ssh
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) Polish OTW
View previous topic :: View next topic  
Author Message
kneczaj
Apprentice
Apprentice


Joined: 13 Oct 2006
Posts: 169
Location: Zamosc

PostPosted: Tue Dec 02, 2008 2:31 pm    Post subject: Montowanie ssh przez ssh Reply with quote

W tej chwili mam tak: musze sie zalogowac na jedno konto przez ssh, a potem z niego przelogowac na drugie na innym serwerze. To drugie konto nie jest dostepne z zewnatrz i przelogowywanie jest konieczne. Czy w takim razie moge sobie zamontowac moj katalog domowy na tym drugim serwerze, bezposrednio na lokalnym kompie? Jak to zrobic?
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Tue Dec 02, 2008 2:53 pm    Post subject: Reply with quote

Nie wiem czy rozumiem Cię ale może sshfs wystarczy?

Montujesz katalog z serwera2 na serwerze1 a potem montujesz tem sam katalog z serwera1 na komputerze z ktorego sie laczysz.
Back to top
View user's profile Send private message
kneczaj
Apprentice
Apprentice


Joined: 13 Oct 2006
Posts: 169
Location: Zamosc

PostPosted: Tue Dec 02, 2008 5:04 pm    Post subject: Reply with quote

Dobrze zrozumiales, ale na serwerze 1 nie mam sshfs i nie mam mozliwosci go doinstalowac. Daloby sie zrobic cos takiego majac sshfs tylko na lokalnym kompie, z ktorego sie loguje?
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2722

PostPosted: Tue Dec 02, 2008 5:45 pm    Post subject: Reply with quote

Skompilować nie możesz?
Back to top
View user's profile Send private message
Zwierzak
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1012
Location: /dev/null

PostPosted: Sun Dec 07, 2008 2:18 pm    Post subject: Reply with quote

Nie zapominajmy, że sshfs, nawet jeżeli ręcznie doinstalowane, to nadal wymaga modułu fuse, który w takim wypadku nie musi być załadowany do kernela.
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 469
Location: Poland

PostPosted: Sun Dec 07, 2008 8:10 pm    Post subject: Reply with quote

Nie prosciej sforwardowac sobie port na komputerze posrednim?
Back to top
View user's profile Send private message
kneczaj
Apprentice
Apprentice


Joined: 13 Oct 2006
Posts: 169
Location: Zamosc

PostPosted: Thu Dec 11, 2008 9:02 am    Post subject: Reply with quote

na komputerze pośrednim mam konto zwykłego użytkownika, bez praw roota. W gre wchodzą jedynie rozwiązania w userspace nie wymagające także ładowania dodatkowych modułów jak fuse.
Back to top
View user's profile Send private message
XianN
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2006
Posts: 82
Location: .wroc.pl

PostPosted: Fri Dec 12, 2008 2:49 am    Post subject: Reply with quote

Nic nie szkodzi, ze nie masz root'a ;)
U siebie na komputerze zakladam, ze mozesz robic co chcesz, wiec masz pewnie sshfs gotowe do uzycia :)

Code:
kneczaj@domowy $ ssh user@serwer.bezroota.pl -L 1025:docelowa.maszyna.pl:22

Mozesz to oczywiscie ubrac w screen'a czy cos...
1025 - tutaj port > 1024 (nie musi byc 1025). Tylko root moze zajac port z mniejszym numerkiem.

Teraz pozostaje juz tylko:
Code:
kneczaj@domowy $ sshfs -p 1025 user_docelowej@localhost: ~/katalog

i w ~/katalog pojawia sie zabawki ze zdalnej piaskownicy:)

Pozdrawiam,
XianN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW 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