

Remote /etc/ssh/sshd_config: X11Forwarding no the remote machine serving the application which drives the data going to the Xserver Two solutions are reported, the first bypassing xauth, the second addressing the bug. I came across this question after a run in with an sshd-xauth bug nearly a decade old. SSH: The Secure Shell - The Definitive Guide - 9.3.Only use ForwardingX11 when you need to via ssh -X If you can, disable X11Forwarding completely on the server so it's disallowed.Don't include ForwardX11 yes in your $HOME/.ssh/config file.So if you're wanting to operate your SSH connections in the most secure manor possible, it's best to do the following: It's generally ill-advised to run with ForwardX11 yes on at all times. messages, so again, method #2 would seem to be the most appropriate if you want to operate with ForwardX11 yes on by default, but then selectively disable it for certain connections from the ssh client's perspective. So it's this setup, which is ultimately driving the generation of those X11. They're usually only present when you have the following entries in your $HOME/.ssh/config file, at the top. Much of the time these message won't even show up. Of the 3 methods I generally use #2, because I'll often want X11Forwarding on for most of my servers, but then don't want to see the X11. This is typically the default but in case it isn't, you can setup your sshd server so that X11Forwarding is off, in /etc/ssh/sshd_config.
#SSH SHELL REQUEST FAILED ON CHANNEL 0 INSTALL#
$ ssh -o ForwardX11=no can do the same thing with the -x switch: $ ssh -x will only temporarily disable this message, but is a good option if you're not able to or unwilling to install xauth on the remote server. You can instruct the ssh client to not attempt to enable X11 forwarding by inclusion of the SSH parameter ForwardX11. Subsequent logins will no longer show this message. $ ssh creating new authority file /root/.Xauthority If you then attempt to ssh into the server you'll see a message that an entry is being created in the user's. On Fedora 19 you install xauth like so: $ sudo yum install xorg-x11-xauth So you can install it on each server to get rid of this annoying message. Xauthority file, because xauth is not installed. The server you're remoting into is complaining that it cannot create an entry in the user's. You can always send messages to /dev/null too but these methods try to deal with the message through configuration, rather than just trapping and dumping them. I'm pretty lost here.These messages can be eliminated through 1 of 3 methods, using just SSH options. Many people have had this issue on StackOverflow as well, but I see them marking an answer as the correct, but those did not work for me. I did try to use my initials instead, but that yields the exact same response. The other guy's SSH URL is wheras Bitbucket automatically shows for me.
#SSH SHELL REQUEST FAILED ON CHANNEL 0 PASSWORD#
The other guy's private key is not password protected. Something I know for a fact that nobody else has. I have verified with ssh-keygen that the private key /home/user/.ssh/id_rsa does have the public key I attached in Bitbucket. I have entered my SSH public key into (which starts with ssh-rsa XXXXXXXXX) When I try to SSH into the server with -Tv flags, I get this output: debug1: Found key in /home/user/.ssh/known_hosts:6ĭebug1: Authentications that can continue: publickeyĭebug1: Next authentication method: publickeyĭebug1: Offering RSA public key: /home/user/.ssh/id_rsaĭebug1: Server accepts key: pkalg ssh-rsa blen 277ĭebug1: Authentication succeeded (publickey).Īuthenticated to (:7999).Īs you can see, it authenticates me properly but for some reason replies with shell request failed on channel 0 git clone denied (publickey)įatal: Could not read from remote repository One member of my organization at work has successfully authenticated and cloned the repository (same I am trying to clone), but mine keeps failing. I am trying to use SSH to clone a repository, instead of HTTPS, to see if the speed is faster (it's a large repository).
