Problémme SSS SSh

pyr-sout Messages postés 18 Statut Membre -  
pyr-sout Messages postés 18 Statut Membre -
Bonjour,

la config : serveur mysecureshell 0.95 - distrib ubuntu gutsy - ip de la machine serveur 192.168.1.14 - ip de la machine cliente en reseau interne 192.168.1.13

le probléme en localhost ça marche a partir de la machine client 192.138.1.13 avec filezilla ça marche -- depuis l'exterieur imposible de se loguer

j'ai creer un compte pour testé
loguin test mp test ip serveur chat-sout.no-ip.biz

information config live box

Interface de réception : ppp0 | Interface de transmission : ppp0
1 * * * 4662 tcp permettre 1
* * * 4662

3 * * * 22 tcp permettre 4
* * * 22


nat
LAN srv 4 Redir Port 192.168.1.14 192.168.1.14 22 22 Activé
System 6 Redir Port 192.168.1.1 192.168.1.14 22 22 Activé

serveur lan
sftp Oui TCP 22 22 192.168.1.14 ppp0
-------------------------------------------------------------------------------------------------------------------------------------------
retour terminal mysecureshell

MySecureShell Verification Tool #
-e #################################################


-e ** Verifing file existance **

-e Verifing file existance of /bin/MySecureShell [ OK ]
-e Verifing file existance of /usr/bin/sftp-who [ OK ]
-e Verifing file existance of /usr/bin/sftp-kill [ OK ]
-e Verifing file existance of /usr/bin/sftp-state [ OK ]
-e Verifing file existance of /usr/bin/sftp-admin [ OK ]
-e Verifing file existance of /usr/bin/sftp-verif [ OK ]
-e Verifing file existance of /etc/ssh/sftp_config [ OK ]

-e
** Verifing rights **

-e Verifing file rights of /etc/ssh/sftp_config [ OK ]
-e Verifing file rights of /usr/bin/sftp-who [ OK ]
-e Verifing file rights of /usr/bin/sftp-verif [ OK ]
-e Verifing file rights of /usr/bin/sftp-state [ OK ]
-e Verifing file rights of /usr/bin/sftp-kill [ OK ]
-e Verifing file rights of /usr/bin/sftp-admin [ OK ]
-e Verifing file rights of /bin/MySecureShell [ OK ]
-e

** Verifing rotation logs **
MySecureShell rotation logs [ OK ]


** Verifing server status **
Verifing server status (ONLINE) [ OK ]


test en reseau
pat@libretto:~$ lftp sftp://192.168.1.14
lftp 192.168.1.14:~>

--------------------------------------------------------------------------------------------------------------------------------------------------------
autre retour terminal

pat@libretto:~$ ps aux | grep ssh
root 4793 0.0 0.1 5284 996 ? Ss 02:41 0:00 /usr/sbin/sshd
pat 5424 0.0 0.1 4436 540 ? Ss 02:42 0:00 /usr/bin/ssh-agent x-session-manager
pat 21032 0.0 0.1 2988 760 pts/1 R+ 09:30 0:00 grep ssh
pat@libretto:~$ ssh -v user@localhost
OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/pat/.ssh/identity type -1
debug1: identity file /home/pat/.ssh/id_rsa type -1
debug1: identity file /home/pat/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6p1 Debian-5build1
debug1: match: OpenSSH_4.6p1 Debian-5build1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5build1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is da:a0:c3:2c:ea:46:d0:34:27:2c:a7:34:9e:35:82:0e.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': y
Please type 'yes' or 'no': yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/pat/.ssh/identity
debug1: Trying private key: /home/pat/.ssh/id_rsa
debug1: Trying private key: /home/pat/.ssh/id_dsa
debug1: Next authentication method: password
user@localhost's password:
Connection closed by UNKNOWN
pat@libretto:~$

--------------------------------------------------------------------------------------------------------------------------------------------
voila si vous pouvez m'aidez c'est genial sinon merci quand même d'avoir lu

4 réponses

kiki
 
Bonjour,

Il faut installer le paquet ssh-server pour se connecter sur un serveur.
Par defaut, si c'est comme sur debian, seul ssh-client est installé.
0
pyr-sout Messages postés 18 Statut Membre 1
 
salut kiki
ssh-server est bien installé
0
bob031 Messages postés 8228 Statut Membre 473
 
Bonjour,

voir le fichier sshd_config

:-))
0
pyr-sout Messages postés 18 Statut Membre 1
 
bonjour, désolé pour le retar mais j'étais absent voici les fichiers config


mon fichier sftp-config

<Default>
VirtualChroot true
GlobalDownload 10m
Home /ser/ftpapcs
StayAtHome false
</Default>

<User adminftp>
IsAdmin true
</User>

<Default>
VirtualChroot true
GlobalDownload 10m
Home /ser/ftpapcs
StayAtHome false
</Default>

<Group apcs>
VirtualChroot true
Upload 0
Download 1m
LimitConnectionByIP 1
LimitConnection 5
StayAtHome false
</Group>

fichier ssh_config

Host *
# ForwardAgent no
# ForwardX11 no
# ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no

et toujour le compte de ou vous pouvez le testé
loguin test mp test ip serveur chat-sout.no-ip.biz

merci à vous
0