0

ssh without login

Posted by admin on Jun 7, 2009 in Unix

1) Generate private/public key into .ssh ssh-keygen -t dsa 2) copy public key to destn cat .ssh/id_dsa.pub | ssh <destn> “umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys”

 
0

ssh port fowarding for Toad or MySQL client

Posted by admin on Jun 7, 2009 in Database, Unix

10.1.16.8 is MySQL server 10.1.5.234 is an intermediate host Setup a tunnel bash-3.2$ ssh  -L3306:10.1.16.8:3306 howardb@10.1.5.234 Connect Toad to localhost instead of 10.1.16.8 using port 3306 and connection is made. Intermediate host has “AllowTcpForwarding yes” in /etc/ssh/sshd_config Restart server after modifying sshd_config

Copyright © 2008-2018 Brinsmead Data Services All rights reserved.