HULK Forum Index Linux početnici ssh,sftp i chroot |
Pregledavanje ovog Threada:
1 Anonimnih Korisnika
Dno Prethodna tema Sljedeca tema |
|
|
|
---|
Pošiljatelj | Thread |
---|
|
ssh,sftp i chroot | #1 |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Linux Master
Pridružen: 07.12.2006
Od vinkovci
Poruke: 225
Level : 14 HP : 0 / 325 Grupa:
Registered Users |
prema ovom linku
sam instalirao scponly i chroot-o taj sftp account. e sad problem je u tome što se ja spajam preko ssh id_rsa keys i ne želim omogućiti passord, napravio sam novi par ključeva samo za tog usera, postavio pub key u njegov home .ssh dir chmod-ao 700 ,al ne mogu se spojit, neće pa neće.. probao sam i preko filezille, učitao ključ, metoda sftp ...ali ništa .. koji je najlakši način da napravim user acount na serveru, koji se spaja preko ključa i zatvoren je u svoj home folder (tamo bih smjestio njegovu web stranicu |
||||||||||
Postano : 06.04.2008 5:45:52
|
|
Re: ssh,sftp i chroot | #2 |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Regularni posjetitelj
Pridružen: 05.01.2005
Od Karlovac
Poruke: 61
Level : 6 HP : 0 / 142 Grupa:
Registered Users UrednikNovosti UrednikRecenzija UrednikLinkova ModeratoriForuma |
Možda da počneš odavde:
Citat: How To Set Up SSH With Public-Key Authentication On Debian Etch |
||||||||||
_________________
Those who give up their liberty for temporary convenience will find themselves ultimately with neither. Linux User #277235 Linux Machines # 205191, 312915, 339986, 339987 GnuPG key #72169511 @ hkp://subkeys.pgp.net |
|||||||||||
Postano : 06.04.2008 8:19:45
|
|
Re: ssh,sftp i chroot | #4 |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Regularni posjetitelj
Pridružen: 05.01.2005
Od Karlovac
Poruke: 61
Level : 6 HP : 0 / 142 Grupa:
Registered Users UrednikNovosti UrednikRecenzija UrednikLinkova ModeratoriForuma |
Citat:
Probaj još jednom. Citat: ja želim ograničiti usera da vidi samo svoj folder i iz njega ne može izaći. kad sam to napravio s scponly onda se ne mogu spojit niti preko sftp niti s ssh koristeći tog chroot-anog usera Možda će ovo pomoći: http://www.howtoforge.com/chroot_ssh_sftp_debian_etch http://www.howtoforge.com/mysecureshell_sftp_debian_etch Citat: This tutorial describes two ways how to give users chrooted SSH access. With this setup, you can give your users shell access without having to fear that they can see your whole system. Your users will be jailed in a specific directory which they will not be able to break out of. The users will also be able to use SFTP in their chroot jails. |
||||||||||
_________________
Those who give up their liberty for temporary convenience will find themselves ultimately with neither. Linux User #277235 Linux Machines # 205191, 312915, 339986, 339987 GnuPG key #72169511 @ hkp://subkeys.pgp.net |
|||||||||||
Postano : 07.04.2008 5:13:34
|
|
Re: ssh,sftp i chroot | #5 |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Linux Master
Pridružen: 07.12.2006
Od vinkovci
Poruke: 225
Level : 14 HP : 0 / 325 Grupa:
Registered Users |
uspio sam prema ovom tutorialu ovakom u jedan folder zaključanom accountu, ograničene konzole rssh moguće je lako dodati neki drugi folder ako želimo da mu taj korisnik ima pristup:
mount -o bind /neki/folder /chrootani/folder a moguće je i dodat u fstab da to bude trajno: /mnt/stuff /home/scponly/stuff none rw,bind 0 0 |
||||||||||
Postano : 07.04.2008 18:45:49
|
Vrh Prethodna tema Sljedeca tema |
|