Salut,
De rien ![]()
Sinon pour l'url si tu es sous unix, il existe des formats et pour windows il faut obligatoirement WinSCP ![]()
You are not logged in. Please login or register.
MySecureShell forum → Posts by teka
Salut,
De rien ![]()
Sinon pour l'url si tu es sous unix, il existe des formats et pour windows il faut obligatoirement WinSCP ![]()
Bonsoir ![]()
Essaie avec ça:
<User toto>
Home /monrepertoire/
StayAtHome true
</User>Et merci de ton soutien ![]()
And about the deb packages, I suppose they are build by the mysecureshell developers/maintainers , because mysecureshell is about security and I want to be sure that the packages are secure enough.
I don't want to sound pretentious but package/repository signing and integrity check (md5sum) will be good.
You can found md5sum for each file in notes of MySecureShell 1.0 (small logo after 1.0 in SF download page)
http://sourceforge.net/project/shownote … _id=117807
Thanks for the great work. I believe this is the future of FTP !
Thank you ![]()
Thanks you for the report ![]()
The link is deleted.
Site should be corrected at 00:00 (GMT+1 France) ![]()
A ton hasard dans ta configuration, tu n'interdit pas plusieurs connexion par ip / user / totale ? ![]()
Car Fillezilla utilise 1 connexion pour naviguer sur le serveur et une connexion pour les transferts.. ![]()
Personnellement, j'utilise WinSCP (http://www.winscp.com), il pose moins de problèmes et propose des options sympathiques ![]()
Bonjour,
Le fichier de configuration semble correct.
Quand tu dis que le serveur te déconnecte quand tu transfert un fichier, tu le voit comment ?
Tu utilise quel client SFTP ?
Bonjour,
Je cherche à installer MySecureShell v0.95 sur un serveur qui tourne sur OpenBSD 4.1.
Lorsque je fais un make all, j'obtient le message d'erreur suivant :
"Makefile", line 51: Missing dependency operator
"Makefile", line 53: Need an operator
"Makefile", line 54: Missing dependency operator
"Makefile", line 57: Need an operator
"Makefile", line 58: Missing dependency operator
"Makefile", line 60: Need an operator
Fatal errors encountered -- cannot continueMerci d'avance.
Bonjour,
Il faut installer GNUMakefile et après compiler avec la commande "gmake" ![]()
Try with this please ![]()
No my script is correct but your configuration change log file name (see tag LogFile).
Run this script in background and wait for mails
#!/bin/bash LOG='/var/log/sftp-server.log' MAIL='myemail@address.com' SUBJECT='MySecureShell upload' IFS=# tail -f $LOG | grep -i -e upload -e rename \ | sed -r 's/^(.{19}).*\[(.*)\]\[.*\](.*)/\1#\2#\3/' | while read when user file in $FILES ; do file=`echo $file | rev | cut -d"'" -f2 | rev` end=${file:(-9)} #Ignore partial upload if [ "$end" != '.filepart' ] ; then mail -s $SUBJECT $MAIL << _EOF New file uploaded by: $user $file with date $when _EOF fi done
Hi
I change name log file in configuration mysecureshell file, next copy&paste to script file, run script next upload testing file and nothing.
I didn't got any mail.
How check is script working? Where, in which log?
Previous script send all information but works.
This nothing.Onyx
Sorry a little mistake.
Copy the new script, check LOG and MAIL and run ![]()
Bonjour,
Tout simplement quelqu'un qui à un accès SSH peut faire ce qu'il veut sur la machine. ![]()
Donc on peut imaginer qu'il utilise des failles de sécurités pour passer root et ensuite utiliser ta machine pour faire ce qu'il veut.
Bonjour,
Il faut savoir que c'est normal ! ![]()
En effet MySecureShell interdit par défaut les connexions en SSH pour des raisons de sécurité.
Mais il est possible de changer ça si vous le voulez vraiment. ![]()
Pour cela, il suffit de rajouter la ligne suivante:
Shell /bin/bashDans le fichier /etc/ssh/sftp_config après la ligne:
<Default>ATTENTION: l'effet de bord et que n'importe quel utilisateur MySecureShell pourra avoir un accès au SSH.
Pour donner des droits shells plus restreint, il suffit d'un petit tour sur le site officiel pour comprendre comme ça fonctionne et en 5mins ce petit problème est régler ![]()
No my script is correct but your configuration change log file name (see tag LogFile).
Run this script in background and wait for mails ![]()
#!/bin/bash
LOG='/var/log/sftp-server.log'
MAIL='myemail@address.com'
SUBJECT='MySecureShell upload'
IFS=#
tail -f $LOG | grep -i -e upload -e rename \
| sed -r 's/^(.{19}).*\[(.*)\]\[.*\](.*)/\1#\2#\3/' |
while read when user file in $FILES ; do
file=`echo $file | rev | cut -d"'" -f2 | rev`
end=${file:(-9)}
#Ignore partial upload
if [ "$end" != '.filepart' ] ; then
mail -s $SUBJECT $MAIL << _EOF
New file uploaded by: $user
$file
with date $when
_EOF
fi
donere tekaje peux te laisser voir par toi même
le serveur est le même ---- le loguin aussi - le mp est le loguin 2 fois
tu pourras voir--- si pb de connexion je te donerais le tout en clair
cordialement pat
Désolé, je n'ai pas trop le temps de regarder ton problème
.
Par contre essai d'utiliser la commande suivante, depuis le répertoire /home/sftp:
ls -lREt envoi le résultat ![]()
Je vois rien de caché dans tes répertoires.
Sous linux tout ce qui est caché commence par un . (point).
Sinon si tu veux rentrer dans un répertoire qui contient un espace il faut faire:
cd "mon repertoire"To launch the script, just do:
./script.shIs it better?
Déjà, maintenant, ta conf me plait mieux, et je pense que ton problème est juste un tout petit problème de compréhension. Par rapport à ce que je lis, tu as défini /home/sftp comme home de tous les users MySecureShell.
Or tu me parles de /home/ser. Le home définit dans le fichier /etc/passwd est à zapper, car c'est MySecureShell qui prends la main dessus. Si ton user a bien le shell /bin/MySecureShell ainsi que les droits pour aller dans /home/sftp, il n'y a pas de raisons que lorsque tu te connectes tu n'arrives pas dedans.
Est-ce qeu ça t'éclaire ? Merci
Euh j'avais cru comprendre que c'était pas un problème de home mais que MySecureShell fonctionne très bien en réseau local, mais dès que tu passe par le net, il n'y avait plus rien..
Ou alors, j'ai pas compris ![]()
pattt> tu peux confirmer ? ![]()
Here the famous script :
#!/bin/bash
LOG='/var/log/sftp-server.log'
MAIL='myemail@address.com'
SUBJECT='MySecureShell upload'
IFS=#
grep -i -e upload -e rename $LOG \
| sed -r 's/^(.{19}).*\[(.*)\]\[.*\](.*)/\1#\2#\3/' |
while read when user file in $FILES ; do
file=`echo $file | rev | cut -d"'" -f2 | rev`
end=${file:(-9)}
#Ignore partial upload
if [ "$end" != '.filepart' ] ; then
mail -s $SUBJECT $MAIL << _EOF
New file uploaded by: $user
$file
with date $when
_EOF
fi
doneEnjoy ![]()
Hi,
For the script please wait
(difficult to have time with work
)
I looking for script who analyze MySecureShell log file and send information by the mail about upload, download files to user... Who help me? I don't have experience in script writing. Thanks.
I enable log file by add line LogFile /var/log/sftp_server.log in '/etc/ssh/sftp_config' file.
## MySecureShell Configuration File ##
#Default rules for everybody
<Default>
LogFile /var/log/sftp_server.logand I have sftp_server.log file
I see information about user and upload, download files
e.g.
2007-11-23 13:10:06 [34:40:1m[18760][tom][192.168.5.22]Upload into file '/In/C070381-ZPA221107.xls.pgp.filepart'[37:40:0m
2007-11-23 13:10:13 [31:40:1m[18760][tom][192.168.5.22]Try to rename '/In/C070381-ZPA221107.xls.pgp.filepart' -> '/In/C070381-ZPA221107.xls.pgp' : success[37:40:0mI want send information -mail when user about upload files
e.g.
in topic 'MysecureShell user - tom'
and in contents
'Server MySecureShell notify about upload file(s) from user: tom
/home/sftpuser/tom/In/C070381-ZPA221107.xls.pgp
with date 2007-11-23 13:10:13MySecureShell script'
where home/sftpuser/tom is Home path from /home/sftpuser/$USER in /etc/ssh/sftp_config' file
good information in this mail was be info about size file but i don't see this information in log file
I thinking about change rights and time after file is upload - we eliminate limitation permission and date, when user have own setup client application e.x. WINSCP. Maybe to do from this script level?
Maybe for the moment, it's a solution to do this in the script ![]()
Digression:
I use OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c and I have another linux server where I don't have install MysecureShell. How setup log file in SSH config? I want see in log file e.g. information about connection and upload files by SSH(SFTP) in syslog like i have in sftp_server.log It's possible without install MysecureShell?
If I'm right some (unofficial) patch exist to add sftp log but not include into OpenSSH...
So patch OpenSSH or install MySecureShell ![]()
Hi,
Check on your linux if variable LANG is correct, and maybe if you use putty check configuration of your session (Window -> Translation).
French works well on my linux (MySecureShell) and windows (Samba)
.
Bonsoir,
bonjour teka et merci de ta reponse désolé si la mienne à tardé j'étais absent
oups redésolé je n'avais pas vu la rubrique pb de connection -- j'aurais du clore le premier post car maintenant j'arive à la racine mais ce sera le pb 2 --une chose après l'autre
Pas de problème ![]()
je débute complètement en ssh
j'ai réinstallé tout mo système (gutsy) plusieur pb
le premier et je te met tous mes test je me logue en interne d'une autre machine avec filezilla j'arive sans pb sur le serveur. d'une machine exterieur impossible
Par défaut, il n'y a pas de firewall installé ?
Avec la commande suivante (à exécuter en root):
iptables -L -vnPeux-tu faire :
ssh -v 192.168.1.14Comme ça, on pourra voir ou ça bloque ![]()
voila je t'ai donné tout ce que j'ai su trouver une semaine que je me bat -- je voudrais vraiment ariver à le faire marcher c'est mo premier sftp
et encore merci à toi
Pas de problème, on est là pour ca ![]()
Problem how set up permissions upload files and preserve timestamp regardless of Setup (set permission, timestamp) in client applications?
When user, who use client WINSCP don't mark check box set permission in upload option uploaed file have server rights in conformity with value in sftp_config file
ex. DefaultRights 0770 0770.
But sometimes users WINSCP program mark check box set permission (Options, Preferences) in upload options and setup only read rights to the file. This file have user rights (exp. read) even though i have set up on the server rights (RWX) in sftp_config file DefaultRights 0770 0770.
How setup own mask to upload files in regardless of Setup (set permission) in client applications - WINSCP?
With MySecureShell 0.95 you can't set upload rights. In MySecureShell 1.0 (coming soon but no date), you can set a minimum mask for upload ![]()
And the same problem with date of file I want have the same date, time when file is upload (I see this date in log file) when user in WINSCP mark check box option ‘preserve timestamp’ files have user file time example old time 2006-06-02.
How setup in config file mysecure shell current date from the server regardless of setup preserve timestamp in client applications - WINSCP?
You can't do it with MySecureShell 0.95 or next version 1.0. ![]()
But now, it's in todo list ![]()
Who is most important my server? and mysecure shell? or client applications. Who have rights to the files.
That's depend of your needs but MySecureShell should provide both functionality ![]()
ps. I looking for for script who analyze mysecure log file and send information by the mail about download files etc...
Who help me? I don't have experience in script writing.
Best regards
ONYX
I can help you for your script, please create a new post (to have a nice sample of script
)
Bonjour,
L'utilisateur en question (sftp) a bien le shell /bin/MySecureShell ?
Bonjour,
A l'heure actuel, on ne peut pas cumuler l'effet de 2 tags de niveau 0.
Donc c'est impossible pour l'instant, mais je rajouterais cette fonctionnalité ! ![]()
Bienvenu sur le nouveau forum MySecureShell,
L'ancien forum est accessible en lecture seule à l'adresse suivante:
http://mysecureshell.free.fr/index.php
---
Welcome on new forum for MySecureShell,
Old forum is accessible in read only at:
http://mysecureshell.free.fr/index.php
MySecureShell forum → Posts by teka
Powered by PunBB, supported by Informer Technologies, Inc.