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”


ssh port fowarding for Toad or MySQL client

Posted by admin on Jun 7, 2009 in Database, Unix is MySQL server is an intermediate host Setup a tunnel bash-3.2$ ssh  -L3306: howardb@ Connect Toad to localhost instead of 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.