At work, we run a portal server to access all of our "real" servers. Essentially, anyone who needs to SSH into one of the "real" (web) servers would first SSH into the portal, so it looks like this:
mike@localhost# ssh mike@portal #ssh login notice stuff blah blah mike@portal# ssh mike@webserver
I'm trying to write a bash alias or function to combine these two steps into one. I'm not the sysadmin by any stretch, so keeping this as simple as possible without installing extra software would be nice.
I've tried the following but it won't go through as I had hoped:
ssh mike@portal; ssh mike@webserver #terminates on terminal for portal ssh mike@portal `ssh mike@webserver` #hangs ssh mike@portal ssh mike@webserver #connects, but gives error "pseudo-terminal will not be allocated because stdin is not a terminal"
Any ideas or workarounds for this?