túnel SSH, configuração de encaminhamento de porta

1

Eu tenho um script simples para o tunelamento SSH

createTunnel() {
  /usr/bin/ssh -i /home/miner/EC2.pem -f -N -R 10022:localhost:22 -L 19922:[email protected]:22 [email protected]
  if [[ $? -eq 0 ]]; then
    echo Tunnel created successfully
  else
    echo An error occurred
  fi
}
/usr/bin/ssh -p 19922 localhost ls > /dev/null
if [[ $? -ne 0 ]]; then
  echo Creating new tunnel
  createTunnel
fi

Quando eu executo, recebo os seguintes erros, quais são as possíveis causas?

channel_setup_fwd_listener: cannot listen to port: 10022
channel_setup_fwd_listener_tcpip: cannot listen to port: 19922
channel 2: open failed: administratively prohibited: open failed
channel 3: open failed: administratively prohibited: open failed
    
por user965748 23.09.2016 / 03:56

0 respostas