-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/28/07, Rodrigo - Y! wrote: > A minha necessidade seria a seguinte. Abrir apenas uma porta no meu > servidor (porta ssh) fazer o cliente conectar via putty (com a opção > tunnel configurada). ... >Mais como o cliente vai abrir > o terminal do servidor, não quero que o mesmo execute nenhum tipo de > comando no meu servidor, mesmo os comandos disponiveis no rbash (ex.: > df, free, top) apenas quero que ele abra o terminal e logo após ele usar > o Terminal Server possa dar exit no terminal.
No openssh-client tem a opção -N que e recomendado para usar quando se quer fazer port fowarding, a opção não invoca a shell quando a conexão e estabelecida. Me perguntei se o PuTTY não teria uma opção similar, então fui ler a documentação, e olha o que achei: 3.7.3.12 -N: suppress starting a shell or command The -N option prevents PuTTY from attempting to start a shell or command on the remote server. You might want to use this option if you are only using the SSH connection for port forwarding, and your user account on the server does not have the ability to run a shell. This feature is only available in SSH protocol version 2 (since the version 1 protocol assumes you will always want to run a shell). This option is equivalent to the 'Don't start a shell or command at all' checkbox in the SSH panel of the PuTTY configuration box (see section 4.18.3). http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter3.html#using-cmdline Se isso não funcionar pode a sequência: echo "Aperte enter para fechar o tunnel" read exit no .bash_profile - -- Paulino Kenji Sato http://www.nobel.com.br -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFHJBEyPOuxVuWcl9QRAubnAJwNbY3IspmIrmG6ZehsyLqJAJ/+/ACePd5I 4x9Wq4mdtzoCQpdtSvz9fg0= =+IVo -----END PGP SIGNATURE-----