Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 31 characters in body
Source Link
Mike Slinn
  • 283
  • 3
  • 8

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -RfNR $JUMPER\
    $C9_JUMP_HOST:$PORT$C9_JUMP_PORT:localhost:22 $USER@$JUMPER &$C9_JUMP_USER@$C9_JUMP_HOST
    I wonder if the `-T` option might be helpful? Should `nohup` be used?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    ssh -fNR \
    $C9_JUMP_HOST:$C9_JUMP_PORT:localhost:22 $C9_JUMP_USER@$C9_JUMP_HOST
    I wonder if the `-T` option might be helpful? Should `nohup` be used?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

deleted 211 characters in body
Source Link
Mike Slinn
  • 283
  • 3
  • 8

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. (I find that writing things out helps me understand.) Although I've made good progress in learning how to put this together, I'm kinda stuck with the incantation(s) necessary to get the port forwarding to work. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. (I find that writing things out helps me understand.) Although I've made good progress in learning how to put this together, I'm kinda stuck with the incantation(s) necessary to get the port forwarding to work. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

added 2978 characters in body
Source Link
Mike Slinn
  • 283
  • 3
  • 8

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. (I find that writing things out helps me understand.) Although I've made good progress in learning how to put this together, I'm kinda stuck with the incantation(s) necessary to get the port forwarding to work. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

The crux of the blog post is this command, whichHere is supposed to set up port forwarding from the client to4-party initialization sequence performed by an administrator using the jump host.client (laptop):

ssh -f -N -T -R $PORT:localhost:22 jumper

What is the right incantation, and is there anything else I might need to do?

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. (I find that writing things out helps me understand.) Although I've made good progress in learning how to put this together, I'm kinda stuck with the incantation(s) necessary to get the port forwarding to work. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

The crux of the blog post is this command, which is supposed to set up port forwarding from the client to the jump host.

ssh -f -N -T -R $PORT:localhost:22 jumper

What is the right incantation, and is there anything else I might need to do?

I would be happy to provide credit in the blog posting to whomever might provide the solution.

I am trying to figure out how to get a jump host to work with AWS Cloud9. Below is a diagram taken from the blog post (on my staging server) there I am writing on the subject. (I find that writing things out helps me understand.) Although I've made good progress in learning how to put this together, I'm kinda stuck with the incantation(s) necessary to get the port forwarding to work. Please refer to the blog post (just under 3000 words) for the entire scenario.

diagram

Here is the 4-party initialization sequence performed by an administrator using the client (laptop):

  1. The administrator logs into the target server ($C9_TARGET_HOST) using a (command line) terminal, and leaves the terminal open.
  2. The administrator logs into the jump host ($C9_JUMP_HOST) using a second (command line) terminal, and leaves the terminal open.
  3. An administrator opens a port ($C9_JUMP_PORT) on the jump host to accept ssh connections from AWS Cloud9.
  4. The administrator points a web browser at the Cloud9 web console to begin defining a Cloud9 environment.
  5. Once the administrator reaches the web page where the Cloud9 ssh key is available, they copy it to the clipboard.
  6. The administrator uses the open terminal connected to the target server to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to define a reverse ssh port forwarding tunnel from the target server to the jump host.
  7. The administrator uses the open terminal connected to the jump host to:
      Add the Cloud9 ssh key to ~/.ssh/authorized_hosts. Add a new host block to ~/.ssh/config that makes it easier to forward ssh commands from Cloud9 to the target server.
  8. The administrator defines a reverse ssh port forwarding tunnel from the target server to the jump host, which means that the jump host will connect back to the target server via the tunnel and forward ssh commands when a connection is made to the specified port ($C9_JUMP_PORT) on the jump host.
    nohup ssh -f -N -R $JUMPER:$PORT:localhost:22 $USER@$JUMPER &
    I wonder if the `-T` option might be helpful?
  9. The administrator creates a reverse port forwarded tunnel using the definition they just created. nohup is used when creating the tunnel so it remains in place once the administrator logs off.
  10. After defining the jump host in the Cloud9 web console, the administrator presses the Next step button.
  11. Cloud9 attempts to reach the jump host.
  12. Cloud9 attempts to reach the target server via the jump host.
  13. If successful, Cloud9 advances the administrator's web page to the next step.
  14. The administrator clicks on each Next step button that appears until the Cloud9 environment is defined.

I would be happy to provide credit in the blog posting to whomever might provide the solution.

grammar
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113
Loading
added 23 characters in body
Source Link
Mike Slinn
  • 283
  • 3
  • 8
Loading
Source Link
Mike Slinn
  • 283
  • 3
  • 8
Loading