Score:0

SSH freezes on pledge: network

be flag

I am trying to connect with server with SSH using ProxyJump. So basically I'm trying to reach target server through bastion host. Fallowing setup works on my local OSX machine but I cannot configure it on the remote Ubuntu 20.04 server. Is stops on debug1: pledge: network even though before I can see log saying debug1: Authentication succeeded (publickey). Additionally, I cannot modify target server settings.

Here're step I've taken:

  1. apt install -y openssh-client

  2. Put this into ssh config file:

     Host bastion
       Hostname 11.111.11.11
       User the_user
       IdentityFile ~/.ssh/bastion
       IdentitiesOnly yes
       ForwardAgent yes
    
     Host target_server
       Hostname target_server
       User the_user
       ProxyJump bastion
    
  3. Placed bastion private key in ~/.ssh and public in target server

  4. chmod 400 [private_key]

  5. eval ssh-agent -s

  6. ssh-add procano-servers

  7. ssh target_server

I cannot go into the server and it is a big blocker for me. Thank you for helping.

[EDIT]: Although I cannot change sshd_config I can read it:

LogLevel VERBOSE
XAuthLocation   /usr/bin/xauth
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
PermitUserEnvironment yes
PasswordAuthentication no
PermitRootLogin no
UsePAM yes
X11Forwarding yes
TCPKeepAlive yes
ClientAliveCountMax 3
ClientAliveInterval 200
Subsystem sftp internal-sftp -l VERBOSE
AddressFamily any
PrintMotd yes
Match Host xxx-*.XXX.com User root
        KbdInteractiveAuthentication no
        PermitRootLogin without-password
Match User root
        KbdInteractiveAuthentication no
        PermitRootLogin no
br flag
Have you tried the old fashion way to login to the target server by first login into the bastian? `ssh-add ~/.ssh/bastion; ssh -A bastion`? Or `ssh-add ~/.ssh/bastion; ssh -Ao ProxyCommand="ssh -A [email protected] -W %h:%p" the_user@ target_server`
Murakami avatar
be flag
Perfect! It works! Thank you very much.
Murakami avatar
be flag
Sorry, Actually it worked for a while, but again after few days issue is due again :(
br flag
Do you get any specific error?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.