Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Gentoo + FreeDBS + SSH port forwarding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Fri Apr 28, 2006 11:30 am    Post subject: [SOLVED] Gentoo + FreeDBS + SSH port forwarding Reply with quote

Делаю так на первой консоли:

Code:
ssh -2 -N -L 4000:127.0.0.1:3306 -l user example.com
user@example.com's password:


Потом на другой:

Code:
mysql --host=127.0.0.1 --port=4000 -u root -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server during query


На первой консоли:

Code:
Disconnecting: Bad packet length 985319859.


Где тут моя ошибка? Что делать? Подскажите пожалуйста!

Удаленная:
user@www$ ssh -h
Code:
ssh: SSH Secure Shell 3.2.9.1 (non-commercial version) on i386-unknown-freebsd5.4


Локальная:
Code:
OpenSSH_4.2p1, OpenSSL 0.9.7e 25 Oct 2004


Last edited by Laitr Keiows on Sat Apr 29, 2006 12:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Sat Apr 29, 2006 10:59 am    Post subject: Reply with quote

это два разных хоста?
а почему тогда слушается порт на lo интерфейсе?
Back to top
View user's profile Send private message
Laitr Keiows
Moderator
Moderator


Joined: 04 Jul 2005
Posts: 891
Location: Kobe, Japan

PostPosted: Sat Apr 29, 2006 12:16 pm    Post subject: Reply with quote

fank wrote:
это два разных хоста?
а почему тогда слушается порт на lo интерфейсе?

Потому что mysql слушает на lo на удаленном хосте.

Проблему решил, дело было в удаленном хосте.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum