View previous topic :: View next topic |
Author |
Message |
.:deadhead:. Advocate


Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Sat Feb 11, 2006 2:25 pm Post subject: [TIP] vola con OpenSSH & logga SFTP |
|
|
Di recente mi son trovato ad aggiornare OpenSSH e guardando le use a disposizione due di esse hanno colpito la mia attenzione.
sftplogging
web: http://sftplogging.sourceforge.net/
Questa patch non fa altro che aggiungere le seguenti funzionalità ad OpenSSH:
* Log delle sessioni FTP
* Predisporre umask per sessioni FTP
* Abilitare o diabilitare "chown" o "chgrp" durante le sessioni FTP
hpn
web: http://www.psc.edu/networking/projects/hpn-ssh/
OpenSSH ha definite staticamente le dimensioni dei propri buffers, il che può risultare un collo di bottiglia in diverse situazioni [ad es. con scp] Con questa patch la dimensione dei buffers viene definita a runtime, migliorando le prestazioni.
Spero vi possan esser utili
iauz
deadhead _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy !
Last edited by .:deadhead:. on Sat Feb 11, 2006 11:32 pm; edited 1 time in total |
|
Back to top |
|
 |
codadilupo Advocate

Joined: 05 Aug 2003 Posts: 3135
|
Posted: Sat Feb 11, 2006 4:47 pm Post subject: |
|
|
figo
Code: | alkadia ~ # cp /etc/make.conf . && cat make.conf | sed 's/\(USE=\".*\)\(\"\)/\1 hpn sftplogging\2/' > /etc/make.conf
alkadia ~ # emerge --oneshot openssh |
Coda |
|
Back to top |
|
 |
.:deadhead:. Advocate


Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
 |
codadilupo Advocate

Joined: 05 Aug 2003 Posts: 3135
|
Posted: Sun Feb 12, 2006 10:45 am Post subject: |
|
|
.:deadhead:. wrote: | codadilupo wrote: | Code: | alkadia ~ # cp /etc/make.conf . && cat make.conf | sed 's/\(USE=\".*\)\(\"\)/\1 hpn sftplogging\2/' > /etc/make.conf
alkadia ~ # emerge --oneshot openssh |
| sborone!
Che è hai litigato con nano? |
ehehe, se non lo uso tutte le volte che posso, come l'imparo ?
Coda |
|
Back to top |
|
 |
Luca89 Advocate


Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Sun Feb 12, 2006 11:12 am Post subject: |
|
|
Io avrei fatto così:
Code: | alkadia ~ # sed -ie 's/\(USE=\".*\)\(\"\)/\1 hpn sftplogging\2/' /etc/make.conf
alkadia ~ # emerge --oneshot openssh |
Qualche carattere in meno .
sftplogging già la conoscevo mentre hpn no, credo che la abiliterò pure.  _________________ Running Fast! |
|
Back to top |
|
 |
FonderiaDigitale Veteran


Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Mon Feb 13, 2006 2:44 am Post subject: |
|
|
.:deadhead:. wrote: | codadilupo wrote: | Code: | alkadia ~ # cp /etc/make.conf . && cat make.conf | sed 's/\(USE=\".*\)\(\"\)/\1 hpn sftplogging\2/' > /etc/make.conf
alkadia ~ # emerge --oneshot openssh |
| sborone!
Che è hai litigato con nano? |
no, doveva far vedere che sa scrivere le espressioni regolari  _________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
 |
codadilupo Advocate

Joined: 05 Aug 2003 Posts: 3135
|
Posted: Mon Feb 13, 2006 10:29 am Post subject: |
|
|
FonderiaDigitale wrote: | .:deadhead:. wrote: | Che è hai litigato con nano? |
no, doveva far vedere che sa scrivere le espressioni regolari  |
No, dovevo fare esercizio
Coda |
|
Back to top |
|
 |
Dr.Dran l33t


Joined: 08 Oct 2004 Posts: 766 Location: Imola - Italy
|
Posted: Thu Aug 10, 2006 9:43 pm Post subject: |
|
|
Attenzione per il secondo TIP, se si ha abilitato LDAP si ottiene il seguente messaggio:
"Sorry, sftplogging and ldap don't get along, disabling ldap"
Che non abilità la funzione di sftplogging di OpenSSH
Cheers
Franco _________________ :: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group] |
|
Back to top |
|
 |
Luca89 Advocate


Joined: 27 Apr 2005 Posts: 2107 Location: Agrigento (Italy)
|
Posted: Sat Aug 19, 2006 4:25 pm Post subject: |
|
|
Dr.Dran wrote: | Attenzione per il secondo TIP, se si ha abilitato LDAP si ottiene il seguente messaggio:
"Sorry, sftplogging and ldap don't get along, disabling ldap"
Che non abilit� la funzione di sftplogging di OpenSSH
Cheers
Franco |
E' al contrario, disabilita ldap, questo è il codice usato nell'ebuild (anche se non brilla in leggibilità ):
Code: | if use ldap ; then
use sftplogging \
&& ewarn "Sorry, sftplogging and ldap don't get along, disabling ldap" \
|| epatch "${DISTDIR}"/${LDAP_PATCH}
fi
|
_________________ Running Fast! |
|
Back to top |
|
 |
Dr.Dran l33t


Joined: 08 Oct 2004 Posts: 766 Location: Imola - Italy
|
Posted: Sun Aug 20, 2006 7:53 am Post subject: |
|
|
Oops
Grazie Luca per la precisione Beh comunque se per caso utilizzate SSH interfacciato ad un server si autenticazione con LDAp sapete che non potete utilizzare questa opzione
Cheers
Franco _________________ :: [Dr.Dran] Details ::
- Linux User # 286282
- IT FreeLance Consultant
- President of ImoLUG [Imola & Faenza Linux User Group] |
|
Back to top |
|
 |
|