Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 25/07/2011, à 10:29

walafc0

[Résolu] SSH lent dans un terminal

Bonjour.

Je dispose d'un serveur chez OVH (Gentoo release 2) et j'utilise SSH pour m'y connecter. Lorsque je me connecte a ce serveur dans un terminal ou une console, j'ai le droit à des lag de fou. La connexion se fait normalement, mais ensuite lorsque je tape quelque chose ou que je fais entrée, il se passe au moins 2 secondes avant que le texte apparaissent, et encore plus le temps que la commande s'effectue.

Pourtant, quand je me connecte en SSH avec Putty sur le même serveur, tout fonctionne bien. Mais comme je ne suis pas trop fan de Putty, j'aimerai bien résoudre ce problème pour utiliser une console.

Merci

Dernière modification par walafc0 (Le 29/07/2011, à 10:17)


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#2 Le 26/07/2011, à 06:47

sputnick

Re : [Résolu] SSH lent dans un terminal

Au cas où, lance un

hdparm -Tt /dev/sda1

si sda1 existe. Ça donne une estimation du temps de lecture séquentielle sur disque et dans les caches L*

Essaye de mettre une conf en place à base de ControlMaster :

man ssh_config | less +/ControlMaster

On ne peut pas mettre d'array dans un string!
https://sputnick.fr/

Hors ligne

#3 Le 26/07/2011, à 09:56

walafc0

Re : [Résolu] SSH lent dans un terminal

sputnick a écrit :

Au cas où, lance un

hdparm -Tt /dev/sda1

si sda1 existe. Ça donne une estimation du temps de lecture séquentielle sur disque et dans les caches L*

je n'ai pas de da1, ni même aucun sda... :S

root@ip-**-**-**-**:~# ll /dev
total 4
drwxr-xr-x 15 root root        3880 2011-07-24 14:42 ./
drwxr-xr-x 21 root root        4096 2011-07-24 13:39 ../
crw-------  1 root root     10, 235 2011-07-24 14:42 autofs
drwxr-xr-x  2 root root         560 2011-07-24 14:42 block/
crw-------  1 root root     10, 234 2011-07-24 14:42 btrfs-control
drwxr-xr-x  2 root root        2980 2011-07-24 14:42 char/
crw-------  1 root root      5,   1 2011-07-24 14:42 console
lrwxrwxrwx  1 root root          11 2011-07-24 14:42 core -> /proc/kcore
drwxr-xr-x  2 root root          60 2011-07-24 14:42 cpu/
crw-------  1 root root     10,  59 2011-07-24 14:42 cpu_dma_latency
drwxr-xr-x  5 root root         100 2011-07-24 14:42 disk/
crw-------  1 root root     10,  61 2011-07-24 14:42 ecryptfs
lrwxrwxrwx  1 root root          13 2011-07-24 14:42 fd -> /proc/self/fd/
crw-rw-rw-  1 root root      1,   7 2011-07-24 14:42 full
crw-rw-rw-  1 root fuse     10, 229 2011-07-24 14:42 fuse
crw-rw----  1 root dialout 229,   0 2011-07-24 14:42 hvc0
crw-rw----  1 root dialout 229,   1 2011-07-24 14:42 hvc1
crw-rw----  1 root dialout 229,   2 2011-07-24 14:42 hvc2
crw-rw----  1 root dialout 229,   3 2011-07-24 14:42 hvc3
crw-rw----  1 root dialout 229,   4 2011-07-24 14:42 hvc4
crw-rw----  1 root dialout 229,   5 2011-07-24 14:42 hvc5
crw-rw----  1 root dialout 229,   6 2011-07-24 14:42 hvc6
crw-rw----  1 root dialout 229,   7 2011-07-24 14:42 hvc7
drwxr-xr-x  2 root root          40 2011-07-24 14:42 .initramfs/
-rw-r--r--  1 root root           0 2011-07-24 14:42 .initramfs-tools
drwxr-xr-x  2 root root          60 2011-07-24 14:42 input/
crw-------  1 root root      1,  11 2011-07-24 14:42 kmsg
srw-rw-rw-  1 root root           0 2011-07-24 14:42 log=
brw-rw----  1 root disk      7,   0 2011-07-24 14:42 loop0
brw-rw----  1 root disk      7,   1 2011-07-24 14:42 loop1
brw-rw----  1 root disk      7,   2 2011-07-24 14:42 loop2
brw-rw----  1 root disk      7,   3 2011-07-24 14:42 loop3
brw-rw----  1 root disk      7,   4 2011-07-24 14:42 loop4
brw-rw----  1 root disk      7,   5 2011-07-24 14:42 loop5
brw-rw----  1 root disk      7,   6 2011-07-24 14:42 loop6
brw-rw----  1 root disk      7,   7 2011-07-24 14:42 loop7
drwxr-xr-x  2 root root          60 2011-07-24 14:42 mapper/
crw-r-----  1 root kmem      1,   1 2011-07-24 14:42 mem
drwxr-xr-x  2 root root          60 2011-04-26 01:46 net/
crw-------  1 root root     10,  58 2011-07-24 14:42 network_latency
crw-------  1 root root     10,  57 2011-07-24 14:42 network_throughput
crw-rw-rw-  1 root root      1,   3 2011-07-24 14:42 null
crw-------  1 root root      1,  12 2011-07-24 14:42 oldmem
drwxr-xr-x  2 root root          60 2011-07-24 14:42 pktcdvd/
crw-r-----  1 root kmem      1,   4 2011-07-24 14:42 port
crw-------  1 root root    108,   0 2011-07-24 14:42 ppp
crw-------  1 root root     10,   1 2011-07-24 14:42 psaux
crw-rw-rw-  1 root tty       5,   2 2011-07-26 07:46 ptmx
drwxr-xr-x  2 root root           0 2011-04-07 12:43 pts/
brw-rw----  1 root disk      1,   0 2011-07-24 14:42 ram0
brw-rw----  1 root disk      1,   1 2011-07-24 14:42 ram1
brw-rw----  1 root disk      1,  10 2011-07-24 14:42 ram10
brw-rw----  1 root disk      1,  11 2011-07-24 14:42 ram11
brw-rw----  1 root disk      1,  12 2011-07-24 14:42 ram12
brw-rw----  1 root disk      1,  13 2011-07-24 14:42 ram13
brw-rw----  1 root disk      1,  14 2011-07-24 14:42 ram14
brw-rw----  1 root disk      1,  15 2011-07-24 14:42 ram15
brw-rw----  1 root disk      1,   2 2011-07-24 14:42 ram2
brw-rw----  1 root disk      1,   3 2011-07-24 14:42 ram3
brw-rw----  1 root disk      1,   4 2011-07-24 14:42 ram4
brw-rw----  1 root disk      1,   5 2011-07-24 14:42 ram5
brw-rw----  1 root disk      1,   6 2011-07-24 14:42 ram6
brw-rw----  1 root disk      1,   7 2011-07-24 14:42 ram7
brw-rw----  1 root disk      1,   8 2011-07-24 14:42 ram8
brw-rw----  1 root disk      1,   9 2011-07-24 14:42 ram9
crw-rw-rw-  1 root root      1,   8 2011-07-24 14:42 random
crw-r--r--  1 root root     10,  62 2011-07-24 14:42 rfkill
lrwxrwxrwx  1 root root           5 2011-07-24 14:42 root -> xvda1
drwxrwxrwt  2 root root          40 2011-07-24 14:42 shm/
crw-------  1 root root     10, 231 2011-07-24 14:42 snapshot
drwxr-xr-x  2 root root          80 2011-07-24 14:42 snd/
lrwxrwxrwx  1 root root          15 2011-07-24 14:42 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 2011-07-24 14:42 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 2011-07-24 14:42 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root tty       5,   0 2011-07-24 14:42 tty
crw--w----  1 root tty       4,   0 2011-07-24 14:42 tty0
crw-------  1 root root      4,   1 2011-07-24 14:42 tty1
crw--w----  1 root tty       4,  10 2011-07-24 14:42 tty10
crw--w----  1 root tty       4,  11 2011-07-24 14:42 tty11
crw--w----  1 root tty       4,  12 2011-07-24 14:42 tty12
crw--w----  1 root tty       4,  13 2011-07-24 14:42 tty13
crw--w----  1 root tty       4,  14 2011-07-24 14:42 tty14
crw--w----  1 root tty       4,  15 2011-07-24 14:42 tty15
crw--w----  1 root tty       4,  16 2011-07-24 14:42 tty16
crw--w----  1 root tty       4,  17 2011-07-24 14:42 tty17
crw--w----  1 root tty       4,  18 2011-07-24 14:42 tty18
crw--w----  1 root tty       4,  19 2011-07-24 14:42 tty19
crw-------  1 root root      4,   2 2011-07-24 14:42 tty2
crw--w----  1 root tty       4,  20 2011-07-24 14:42 tty20
crw--w----  1 root tty       4,  21 2011-07-24 14:42 tty21
crw--w----  1 root tty       4,  22 2011-07-24 14:42 tty22
crw--w----  1 root tty       4,  23 2011-07-24 14:42 tty23
crw--w----  1 root tty       4,  24 2011-07-24 14:42 tty24
crw--w----  1 root tty       4,  25 2011-07-24 14:42 tty25
crw--w----  1 root tty       4,  26 2011-07-24 14:42 tty26
crw--w----  1 root tty       4,  27 2011-07-24 14:42 tty27
crw--w----  1 root tty       4,  28 2011-07-24 14:42 tty28
crw--w----  1 root tty       4,  29 2011-07-24 14:42 tty29
crw-------  1 root root      4,   3 2011-07-24 14:42 tty3
crw--w----  1 root tty       4,  30 2011-07-24 14:42 tty30
crw--w----  1 root tty       4,  31 2011-07-24 14:42 tty31
crw--w----  1 root tty       4,  32 2011-07-24 14:42 tty32
crw--w----  1 root tty       4,  33 2011-07-24 14:42 tty33
crw--w----  1 root tty       4,  34 2011-07-24 14:42 tty34
crw--w----  1 root tty       4,  35 2011-07-24 14:42 tty35
crw--w----  1 root tty       4,  36 2011-07-24 14:42 tty36
crw--w----  1 root tty       4,  37 2011-07-24 14:42 tty37
crw--w----  1 root tty       4,  38 2011-07-24 14:42 tty38
crw--w----  1 root tty       4,  39 2011-07-24 14:42 tty39
crw-------  1 root root      4,   4 2011-07-24 14:42 tty4
crw--w----  1 root tty       4,  40 2011-07-24 14:42 tty40
crw--w----  1 root tty       4,  41 2011-07-24 14:42 tty41
crw--w----  1 root tty       4,  42 2011-07-24 14:42 tty42
crw--w----  1 root tty       4,  43 2011-07-24 14:42 tty43
crw--w----  1 root tty       4,  44 2011-07-24 14:42 tty44
crw--w----  1 root tty       4,  45 2011-07-24 14:42 tty45
crw--w----  1 root tty       4,  46 2011-07-24 14:42 tty46
crw--w----  1 root tty       4,  47 2011-07-24 14:42 tty47
crw--w----  1 root tty       4,  48 2011-07-24 14:42 tty48
crw--w----  1 root tty       4,  49 2011-07-24 14:42 tty49
crw-------  1 root root      4,   5 2011-07-24 14:42 tty5
crw--w----  1 root tty       4,  50 2011-07-24 14:42 tty50
crw--w----  1 root tty       4,  51 2011-07-24 14:42 tty51
crw--w----  1 root tty       4,  52 2011-07-24 14:42 tty52
crw--w----  1 root tty       4,  53 2011-07-24 14:42 tty53
crw--w----  1 root tty       4,  54 2011-07-24 14:42 tty54
crw--w----  1 root tty       4,  55 2011-07-24 14:42 tty55
crw--w----  1 root tty       4,  56 2011-07-24 14:42 tty56
crw--w----  1 root tty       4,  57 2011-07-24 14:42 tty57
crw--w----  1 root tty       4,  58 2011-07-24 14:42 tty58
crw--w----  1 root tty       4,  59 2011-07-24 14:42 tty59
crw-------  1 root root      4,   6 2011-07-24 14:42 tty6
crw--w----  1 root tty       4,  60 2011-07-24 14:42 tty60
crw--w----  1 root tty       4,  61 2011-07-24 14:42 tty61
crw--w----  1 root tty       4,  62 2011-07-24 14:42 tty62
crw--w----  1 root tty       4,  63 2011-07-24 14:42 tty63
crw--w----  1 root tty       4,   7 2011-07-24 14:42 tty7
crw--w----  1 root tty       4,   8 2011-07-24 14:42 tty8
crw--w----  1 root tty       4,   9 2011-07-24 14:42 tty9
crw-------  1 root root      5,   3 2011-07-24 14:42 ttyprintk
crw-rw----  1 root dialout   4,  64 2011-07-24 14:42 ttyS0
crw-rw----  1 root dialout   4,  65 2011-07-24 14:42 ttyS1
crw-rw----  1 root dialout   4,  74 2011-07-24 14:42 ttyS10
crw-rw----  1 root dialout   4,  75 2011-07-24 14:42 ttyS11
crw-rw----  1 root dialout   4,  76 2011-07-24 14:42 ttyS12
crw-rw----  1 root dialout   4,  77 2011-07-24 14:42 ttyS13
crw-rw----  1 root dialout   4,  78 2011-07-24 14:42 ttyS14
crw-rw----  1 root dialout   4,  79 2011-07-24 14:42 ttyS15
crw-rw----  1 root dialout   4,  80 2011-07-24 14:42 ttyS16
crw-rw----  1 root dialout   4,  81 2011-07-24 14:42 ttyS17
crw-rw----  1 root dialout   4,  82 2011-07-24 14:42 ttyS18
crw-rw----  1 root dialout   4,  83 2011-07-24 14:42 ttyS19
crw-rw----  1 root dialout   4,  66 2011-07-24 14:42 ttyS2
crw-rw----  1 root dialout   4,  84 2011-07-24 14:42 ttyS20
crw-rw----  1 root dialout   4,  85 2011-07-24 14:42 ttyS21
crw-rw----  1 root dialout   4,  86 2011-07-24 14:42 ttyS22
crw-rw----  1 root dialout   4,  87 2011-07-24 14:42 ttyS23
crw-rw----  1 root dialout   4,  88 2011-07-24 14:42 ttyS24
crw-rw----  1 root dialout   4,  89 2011-07-24 14:42 ttyS25
crw-rw----  1 root dialout   4,  90 2011-07-24 14:42 ttyS26
crw-rw----  1 root dialout   4,  91 2011-07-24 14:42 ttyS27
crw-rw----  1 root dialout   4,  92 2011-07-24 14:42 ttyS28
crw-rw----  1 root dialout   4,  93 2011-07-24 14:42 ttyS29
crw-rw----  1 root dialout   4,  67 2011-07-24 14:42 ttyS3
crw-rw----  1 root dialout   4,  94 2011-07-24 14:42 ttyS30
crw-rw----  1 root dialout   4,  95 2011-07-24 14:42 ttyS31
crw-rw----  1 root dialout   4,  68 2011-07-24 14:42 ttyS4
crw-rw----  1 root dialout   4,  69 2011-07-24 14:42 ttyS5
crw-rw----  1 root dialout   4,  70 2011-07-24 14:42 ttyS6
crw-rw----  1 root dialout   4,  71 2011-07-24 14:42 ttyS7
crw-rw----  1 root dialout   4,  72 2011-07-24 14:42 ttyS8
crw-rw----  1 root dialout   4,  73 2011-07-24 14:42 ttyS9
drwxr-xr-x  6 root root         140 2011-07-24 14:42 .udev/
crw-r-----  1 root root     10, 223 2011-07-24 14:42 uinput
crw-rw-rw-  1 root root      1,   9 2011-07-24 14:42 urandom
crw-------  1 root root    252,   0 2011-07-24 14:42 usbmon0
crw-rw----  1 root tty       7,   0 2011-07-24 14:42 vcs
crw-rw----  1 root tty       7,   1 2011-07-24 14:42 vcs1
crw-rw----  1 root tty       7,   2 2011-07-24 14:42 vcs2
crw-rw----  1 root tty       7,   3 2011-07-24 14:42 vcs3
crw-rw----  1 root tty       7,   4 2011-07-24 14:42 vcs4
crw-rw----  1 root tty       7,   5 2011-07-24 14:42 vcs5
crw-rw----  1 root tty       7,   6 2011-07-24 14:42 vcs6
crw-rw----  1 root tty       7, 128 2011-07-24 14:42 vcsa
crw-rw----  1 root tty       7, 129 2011-07-24 14:42 vcsa1
crw-rw----  1 root tty       7, 130 2011-07-24 14:42 vcsa2
crw-rw----  1 root tty       7, 131 2011-07-24 14:42 vcsa3
crw-rw----  1 root tty       7, 132 2011-07-24 14:42 vcsa4
crw-rw----  1 root tty       7, 133 2011-07-24 14:42 vcsa5
crw-rw----  1 root tty       7, 134 2011-07-24 14:42 vcsa6
crw-------  1 root root     10,  63 2011-07-24 14:42 vga_arbiter
brw-rw----  1 root disk    202,   1 2011-07-24 14:42 xvda1
brw-rw----  1 root disk    202,  16 2011-07-24 14:42 xvdb
crw-rw-rw-  1 root root      1,   5 2011-07-24 14:42 zero
sputnick a écrit :

Essaye de mettre une conf en place à base de ControlMaster :

man ssh_config | less +/ControlMaster

Si j'ai bien compris, ça permet d'utiliser plusieurs sessions SSH sur une seule connexion ? Je pense pas que ça puisse résoudre mon problème, puisqu'avec Putty, ça fonctionne très bien.


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#4 Le 27/07/2011, à 09:56

walafc0

Re : [Résolu] SSH lent dans un terminal

Bonjour,

Edit : Hier en fin de journée, Putty ramait autant qu'un terminal.

Je crois avoir identifié une éventuelle piste pour diagnostiquer le problème. Depuis hier, il y a des travaux juste à côté de la boite, et ils sont plutôt bruyant. Sachant que les décibels ont un effet sur la vitesse d'une connexion, est-il possible que le bruit affecte autant que cela la mienne ?

Merci.


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#5 Le 27/07/2011, à 13:49

VoucyusDo

Re : [Résolu] SSH lent dans un terminal

Le décibel permet de mesurer un grand nombre de choses. Dans ton cas, tu confonds la mesure d'intensité acoustique et la mesure de l’atténuation d'un signal électrique. Ce sont deux grandeurs qui ne sont pas comparables.

Pour information, le décibel est une grandeur sans unité qui mesure le rapport (division) entre deux puissances.


Sent from my Ubuntu box

Hors ligne

#6 Le 27/07/2011, à 15:00

walafc0

Re : [Résolu] SSH lent dans un terminal

Désolé pour l'abus de langage. Mais le bruit peut-il être responsable de ces lags ?


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#7 Le 27/07/2011, à 16:24

redo_fr

Re : [Résolu] SSH lent dans un terminal

Salut,

Mais le bruit peut-il être responsable de ces lags ?

Le bruit des travaux à coté de chez toi... En aucun cas ^_^

Par contre, s'ils creusent, il est possible qu'ils aient "bougé" des câbles provoquant des perturbations sur ta liaison...


Essayes de lancer ton client ssh en mode verbeux et recopie le log ici, à tout hasard

ssh -vv <user>@<serveur>

Il n'y a pas de mauvais outils, il n'y a que de mauvais ouvriers
- papy -
Personnellement, je crois que faire des procès est un signe que les affaires vont mal. Je ne dis pas que Microsoft va mal, ce n'est qu'un signe, pas un indicateur...
- Linus Torvalds -

Hors ligne

#8 Le 27/07/2011, à 16:34

walafc0

Re : [Résolu] SSH lent dans un terminal

redo_fr a écrit :

Par contre, s'ils creusent, il est possible qu'ils aient "bougé" des câbles provoquant des perturbations sur ta liaison...

Ils creusent ^^

OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec socat STDIO SOCKS4A:127.0.0.1:ec2-46-51-142-26.eu-west-1.compute.amazonaws.com:22,socksport=9050
debug1: permanently_set_uid: 0/0
debug1: permanently_drop_suid: 0
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/walafc0/Yozik/AWS/YozikBase.pem type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8p1 Debian-1ubuntu3
debug1: match: OpenSSH_5.8p1 Debian-1ubuntu3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu7
debug2: fd 5 setting O_NONBLOCK
debug2: fd 4 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 119/256
debug2: bits set: 477/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'ec2-46-51-142-26.eu-west-1.compute.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:8
debug2: bits set: 516/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/.ssh/key.pem ((nil))
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/.ssh/key.pem
debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LANG = fr_FR.utf8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-virtual x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Wed Jul 27 14:28:42 UTC 2011

  System load:  0.0               Processes:           83
  Usage of /:   19.2% of 7.87GB   Users logged in:     0
  Memory usage: 7%                IP address for eth0: **.**.**.**
  Swap usage:   0%

  Graph this data and manage this system at https://landscape.canonical.com/
---------------------------------------------------------------------
At the moment, only the core of the system is installed. To tune the 
system to your needs, you can choose to install one or more          
predefined collections of software by running the following          
command:                                                             
                                                                     
   sudo tasksel --section server                                     
---------------------------------------------------------------------

Je tiens à préciser que la connexion s'effectue sans problème.


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#9 Le 27/07/2011, à 17:21

redo_fr

Re : [Résolu] SSH lent dans un terminal

Mmm... Rien de particulier à première vue...

Tu peux aussi recopier ici le fichier de configuration du client ssh ( /etc/ssh/ssh_config ) ?


Il n'y a pas de mauvais outils, il n'y a que de mauvais ouvriers
- papy -
Personnellement, je crois que faire des procès est un signe que les affaires vont mal. Je ne dis pas que Microsoft va mal, ce n'est qu'un signe, pas un indicateur...
- Linus Torvalds -

Hors ligne

#10 Le 27/07/2011, à 17:31

Miam Miam

Re : [Résolu] SSH lent dans un terminal

Peux tu essayer de te connecter au serveur en mettant un casque sur tes oreilles et nous dire si il y a des améliorations !


A vaincre sans péril, on triomphe sans gloire.

Hors ligne

#11 Le 27/07/2011, à 17:40

Miam Miam

Re : [Résolu] SSH lent dans un terminal

Je me souviens avoir eu des problèmes lenteurs avec une connexion ssh dû à un problème de résolution inverse dns.

Indique dans le fichier /etc/ssh/sshd_config

UseDNS no

Mais je ne pense pas que j'avais observé les mêmes symptômes.


A vaincre sans péril, on triomphe sans gloire.

Hors ligne

#12 Le 28/07/2011, à 10:10

walafc0

Re : [Résolu] SSH lent dans un terminal

Voilà le fichier de conf :

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile    %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

Je vais rajouter cette conf et je vous tient au courant smile

Merci


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#13 Le 28/07/2011, à 11:54

redo_fr

Re : [Résolu] SSH lent dans un terminal

pas le bon smile
c'est le ssh_config que je voulais voir, pas le sshd_config ^_^


Il n'y a pas de mauvais outils, il n'y a que de mauvais ouvriers
- papy -
Personnellement, je crois que faire des procès est un signe que les affaires vont mal. Je ne dis pas que Microsoft va mal, ce n'est qu'un signe, pas un indicateur...
- Linus Torvalds -

Hors ligne

#14 Le 29/07/2011, à 09:50

walafc0

Re : [Résolu] SSH lent dans un terminal

Ouuups, désolé, j'ai été trop vite hmm

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

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-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
    ProxyCommand socat STDIO SOCKS4A:127.0.0.1:%h:%p,socksport=9050

const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#15 Le 29/07/2011, à 10:17

walafc0

Re : [Résolu] SSH lent dans un terminal

C'est bon j'ai trouvé !

J'avais configurer SSH pour utiliser Tor, alors forcément, ça allait pas être très rapide ^^

Merci à vous smile


const int unix = 1 ;
printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60) ;

Hors ligne

#16 Le 29/07/2011, à 11:19

Miam Miam

Re : [Résolu] SSH lent dans un terminal

loooooooool tiens tu m'auras appris quelque chose ce matin smile


A vaincre sans péril, on triomphe sans gloire.

Hors ligne

#17 Le 29/07/2011, à 16:02

sputnick

Re : [Résolu] SSH lent dans un terminal

Facepalm.jpg


On ne peut pas mettre d'array dans un string!
https://sputnick.fr/

Hors ligne