Re: open failed: connect failed: Connection refused



i.am.thor@xxxxxxxxx wrote:
>
> Hi all -
>
> I am trying to connect to a computer behind a firewall by being tricky
> with ssh. I want to start an ssh session from behind the firewall to a
> computer on the outside, and then run an xterm on the firewalled
> computer that is displayed on the outside computer, like I show below.
> Then I can go to the outside computer and have shell access (and thus
> everything else) to the firewalled computer.
>
> {FC = Firewalled computer, OC = Outside computer}

Try:
[FC shell]$ ssh -R 2222:localhost:22 OC
[OC shell]$ ssh -p 2222 -X localhost
[OC->FC shell]$ xterm
.



Relevant Pages

  • Re: [fw-wiz] Is NAT in OpenBSD PF UPnP enabled or Non UPnP?
    ... >> I start by not giving logins and SSH access to users I don't trust. ... a network topology which goes around the ... >> firewall and thus is a serious hole to network security. ... >> have access via UPnP to, well, anything that device might happen to ...
    (Firewall-Wizards)
  • Re: ssh attempts
    ... the excellent iptables firewall you probably already have on your system. ... consider changing the port SSH listens on. ... Login to account webmaster not allowed or account non-existent. ... Computer Emergency Response Teams, and Digital Investigations. ...
    (Security-Basics)
  • Re: mpich and iptables firewall?
    ... to me it seems a very weird setup to have a firewall running ... on the cluster nodes. ... Using SGE you could disable rsh and ssh completely ... Chain FORWARD ...
    (comp.parallel.mpi)
  • Re: Problems with ipfw and ssh
    ... I get this error when updating my firewall rules via ssh. ... ${addcmd} 50 allow all from any to any via lo0 ... debug1: PAM: cleanup ...
    (freebsd-questions)
  • Re: Putting server on the internet or not
    ... If you are a home user, ... >> on the internet trying to access my machine via SSH. ... > firewall can be good but you will need to spend more time researching ... >> I'll bet Scot has a generator though. ...
    (Fedora)

Quantcast