Pages : 1
#1 Le 01/12/2013, à 19:00
- philo_neo
Manager son serveur LAMP
bonsoir,
j'ai installé Lamp sur ubuntu 13.10 serveur I386, gnome est installé, j'accede a mysql et la mire du apache http://localhost, affiche bien "It's works".
J'aimerais pouvoir manager mon serveur a distance sur mon réseaux local, le firewall est déactivé.
depuis un host windows en utilisant Putty la connection et refusée de même que depuis un host freebsd.
1/ comment configurer ssh ?
de même je n'arrive pas a accéder a mysql a distance avec workbench.
2/ comment ouvrir les droits ?
FTP-serveur n'est pas installé
3/ comment configurer FTP
Vnc-server est installé, la connection est refusée
4/ comment accéder a vnc
Le fichier /etc/ssh/sshd_config est vide !!
Cdlt,
Philippe
Dernière modification par philo_neo (Le 01/12/2013, à 19:11)
Hors ligne
#2 Le 01/12/2013, à 19:23
- nels69
Re : Manager son serveur LAMP
Logiquement tu installes simplement SSH (sudo apt-get install ssh) sur ubuntu, et tu peux te connecter directement avec:
ssh user@ip_de_ta_machine
Perso, je me connecte à une debian qui tourne sous virtualbox depuis ma tablette sous Android, et j'ai aucun souci.
Hors ligne
#3 Le 01/12/2013, à 19:33
- philo_neo
Re : Manager son serveur LAMP
J'ai fait un "apt-get install ssh" j'ai toujours le même problème la connexion est refusée port 22 !
Hors ligne
#4 Le 01/12/2013, à 19:39
- pires57
Re : Manager son serveur LAMP
bonjour, déja est ce qu'un firewall est installé?
Oups pardon, je viens de relire ... connection refusé, que renvois les logs sur ton serveur
cat /var/log/auth.log
Dernière modification par pires57 (Le 01/12/2013, à 19:41)
Utilisateur d'Archlinux, Ubuntu et Kali Linux
Administrateur système et réseau spécialisé Linux.
LinkedIn
Hors ligne
#5 Le 01/12/2013, à 20:04
- philo_neo
Re : Manager son serveur LAMP
voici la copie du fichier /var/log/auth.log :
Dec 1 08:09:01 dct-zeus CRON[3070]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 08:09:01 dct-zeus CRON[3070]: pam_unix(cron:session): session closed for user root
Dec 1 08:17:01 dct-zeus CRON[3126]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 08:17:01 dct-zeus CRON[3126]: pam_unix(cron:session): session closed for user root
Dec 1 08:39:01 dct-zeus CRON[3282]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 08:39:01 dct-zeus CRON[3282]: pam_unix(cron:session): session closed for user root
Dec 1 09:09:01 dct-zeus CRON[3493]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 09:09:02 dct-zeus CRON[3493]: pam_unix(cron:session): session closed for user root
Dec 1 09:17:01 dct-zeus CRON[3541]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 09:17:01 dct-zeus CRON[3541]: pam_unix(cron:session): session closed for user root
Dec 1 09:39:01 dct-zeus CRON[3672]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 09:39:01 dct-zeus CRON[3672]: pam_unix(cron:session): session closed for user root
Dec 1 10:09:01 dct-zeus CRON[3915]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 10:09:01 dct-zeus CRON[3915]: pam_unix(cron:session): session closed for user root
Dec 1 10:17:01 dct-zeus CRON[4029]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 10:17:01 dct-zeus CRON[4029]: pam_unix(cron:session): session closed for user root
Dec 1 10:39:01 dct-zeus CRON[4170]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 10:39:01 dct-zeus CRON[4170]: pam_unix(cron:session): session closed for user root
Dec 1 11:09:01 dct-zeus CRON[4378]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 11:09:01 dct-zeus CRON[4378]: pam_unix(cron:session): session closed for user root
Dec 1 11:17:01 dct-zeus CRON[4450]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 11:17:01 dct-zeus CRON[4450]: pam_unix(cron:session): session closed for user root
Dec 1 11:39:01 dct-zeus CRON[4582]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 11:39:02 dct-zeus CRON[4582]: pam_unix(cron:session): session closed for user root
Dec 1 12:09:01 dct-zeus CRON[4791]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 12:09:01 dct-zeus CRON[4791]: pam_unix(cron:session): session closed for user root
Dec 1 12:17:01 dct-zeus CRON[4837]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 12:17:01 dct-zeus CRON[4837]: pam_unix(cron:session): session closed for user root
Dec 1 12:39:01 dct-zeus CRON[4997]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 12:39:01 dct-zeus CRON[4997]: pam_unix(cron:session): session closed for user root
Dec 1 13:09:01 dct-zeus CRON[5180]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 13:09:01 dct-zeus CRON[5180]: pam_unix(cron:session): session closed for user root
Dec 1 13:17:01 dct-zeus CRON[5255]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 13:17:01 dct-zeus CRON[5255]: pam_unix(cron:session): session closed for user root
Dec 1 13:39:01 dct-zeus CRON[5395]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 13:39:02 dct-zeus CRON[5395]: pam_unix(cron:session): session closed for user root
Dec 1 14:09:01 dct-zeus CRON[5604]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 14:09:01 dct-zeus CRON[5604]: pam_unix(cron:session): session closed for user root
Dec 1 14:17:01 dct-zeus CRON[5676]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 14:17:01 dct-zeus CRON[5676]: pam_unix(cron:session): session closed for user root
Dec 1 14:39:01 dct-zeus CRON[5820]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 14:39:01 dct-zeus CRON[5820]: pam_unix(cron:session): session closed for user root
Dec 1 15:09:01 dct-zeus CRON[6044]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 15:09:01 dct-zeus CRON[6044]: pam_unix(cron:session): session closed for user root
Dec 1 15:17:01 dct-zeus CRON[6093]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 15:17:01 dct-zeus CRON[6093]: pam_unix(cron:session): session closed for user root
Dec 1 15:39:01 dct-zeus CRON[6252]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 15:39:01 dct-zeus CRON[6252]: pam_unix(cron:session): session closed for user root
Dec 1 16:09:02 dct-zeus CRON[6491]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 16:09:02 dct-zeus CRON[6491]: pam_unix(cron:session): session closed for user root
Dec 1 16:17:01 dct-zeus CRON[6540]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 16:17:01 dct-zeus CRON[6540]: pam_unix(cron:session): session closed for user root
Dec 1 16:39:01 dct-zeus CRON[6718]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 16:39:01 dct-zeus CRON[6718]: pam_unix(cron:session): session closed for user root
Dec 1 17:09:01 dct-zeus CRON[6926]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 17:09:01 dct-zeus CRON[6926]: pam_unix(cron:session): session closed for user root
Dec 1 17:17:01 dct-zeus CRON[7008]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 17:17:01 dct-zeus CRON[7008]: pam_unix(cron:session): session closed for user root
Dec 1 17:39:01 dct-zeus CRON[7148]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 17:39:02 dct-zeus CRON[7148]: pam_unix(cron:session): session closed for user root
Dec 1 18:09:01 dct-zeus CRON[7355]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 18:09:01 dct-zeus CRON[7355]: pam_unix(cron:session): session closed for user root
Dec 1 18:17:01 dct-zeus CRON[7428]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 18:17:01 dct-zeus CRON[7428]: pam_unix(cron:session): session closed for user root
Dec 1 18:39:01 dct-zeus CRON[7565]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 18:39:01 dct-zeus CRON[7565]: pam_unix(cron:session): session closed for user root
Dec 1 19:09:01 dct-zeus CRON[7773]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 19:09:01 dct-zeus CRON[7773]: pam_unix(cron:session): session closed for user root
Dec 1 19:17:01 dct-zeus CRON[7820]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 19:17:01 dct-zeus CRON[7820]: pam_unix(cron:session): session closed for user root
Dec 1 19:39:01 dct-zeus CRON[8048]: pam_unix(cron:session): session opened for user root by (uid=0)
Dec 1 19:39:01 dct-zeus CRON[8048]: pam_unix(cron:session): session closed for user root
Hors ligne
#6 Le 02/12/2013, à 13:13
- nels69
Re : Manager son serveur LAMP
Alors essaye de changer le numéro de port, dans le fichier:
/etc/ssh/sshd_config
tu met un autre port, et tu reessaye:
ssh user@ip_de_ta_machine -p ton-nouveau-port
Hors ligne
#7 Le 02/12/2013, à 14:13
- bruno
Re : Manager son serveur LAMP
Cela ne sert à rien. Visiblement philo_neo essaie de se connecter en root. Or par défaut ce compte est désactivé sur Ubuntu.
Il faudrait déjà essayer de se connecter avec un utilisateur classique depuis une autre machine du réseau local.
Et évidemment indiquer le contenu du fichier sshd_config.
#8 Le 02/12/2013, à 15:57
- pires57
Re : Manager son serveur LAMP
exact bruno, bonne remarque, cela ne passera pas avec root, il faut utiliser ton user admin que tu as saisi lors de l'installation.
Utilisateur d'Archlinux, Ubuntu et Kali Linux
Administrateur système et réseau spécialisé Linux.
LinkedIn
Hors ligne
Pages : 1