<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/sshmenu/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/sshmenu/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/sshmenu/support-requests/</id><updated>2010-02-20T03:25:26Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>How to run command after login</title><link href="https://sourceforge.net/p/sshmenu/support-requests/1/" rel="alternate"/><published>2010-02-20T03:25:26Z</published><updated>2010-02-20T03:25:26Z</updated><author><name>Tauren Mills</name><uri>https://sourceforge.net/u/tauren/</uri></author><id>https://sourceforge.netf60ea6a11d8682fc7fb68ce926e1c10ceb1ba445</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a server that cannot be connected to from an external IP. It only allows SSH connections from within the local network.&lt;/p&gt;
&lt;p&gt;To connect to it, I normally SSH to a server that does have external SSH support.  Then from it, I SSH to the internal server.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;I'd like to configure a quick way to SSH to the internal server. To test this out, I've set up ssh keys so that I can connect between the servers without a password. So using SSHMenu, I created a host with this in the "hostname" field:&lt;/p&gt;
&lt;p&gt;me@external.server "ssh server.behind.firewall"&lt;/p&gt;
&lt;p&gt;However, this opens up a terminal with the following message:&lt;/p&gt;
&lt;p&gt;Pseudo-terminal will not be allocated because stdin is not a terminal.&lt;/p&gt;
&lt;p&gt;If I change the hostname to the following:&lt;/p&gt;
&lt;p&gt;me@external.server "ssh -t -t server.behind.firewall"&lt;/p&gt;
&lt;p&gt;Then, I can get in and get a command prompt.  So it works!  However, I get this error message:&lt;/p&gt;
&lt;p&gt;tcgetattr: Invalid argument&lt;/p&gt;
&lt;p&gt;It isn't a big deal, but if I can get rid of it, I'd like to.  Is this the right way to do what I'm trying, or is there a better approach?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Tauren&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>