Results 1 to 7 of 7

Thread: nautilus connect to server ssh and sftp "access denied"

  1. #1
    Join Date
    Sep 2007
    Beans
    615
    Distro
    Ubuntu 8.04 Hardy Heron

    nautilus connect to server ssh and sftp "access denied"

    Hi,

    This is the first time I tried to use nautilus to connect to sftp or via ssh and I'm having an issue.

    It never asks me for my password but just instantly tells me
    "Could not display "sftp://lotus@10.0.0.124/".
    access denied"

    I tried typing in the location bar
    sftp://lotus@10.0.0.124

    Also tried the "connect to server" using ssh protocol.

    However, I think I have everything set up right on the ssh server because winscp from windows, ssh in cli from both windows and linux, and filezilla sftp all work perfectly.

    I'm thinking it has to do with neither option giving me a chance to enter the password but have no idea why or how to fix it.

    Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,836
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: nautilus connect to server ssh and sftp "access denied"

    Hi iansane.

    By any chance did you change the default port (22)? You would have to reflect that also on the nautilus url. For instance:
    Code:
    sftp://lotus@10.0.0.124:2222/home/lotus
    Regards.

  3. #3
    Join Date
    Sep 2007
    Beans
    615
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: nautilus connect to server ssh and sftp "access denied"

    Quote Originally Posted by papibe View Post
    Hi iansane.

    By any chance did you change the default port (22)? You would have to reflect that also on the nautilus url. For instance:
    Code:
    sftp://lotus@10.0.0.124:2222/home/lotus
    Regards.
    Well actually even though the default port is 22, my laptop is trying to use 2222 to connect even when I type in 22 in the "connect to server" dialogue.

    I thought I had tried ssh in terminal but had only been using putty, filezilla, and cli on windows. When I tried it in terminal without specifying a port it automatically used 2222.

    So I went to the server and added port 2222 to the ssh_config and now it works.

    Any idea why my laptop is defaulting to port 2222 when trying to connect?

    Thanks

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,836
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: nautilus connect to server ssh and sftp "access denied"

    That is weird.

    The default ports assigned for each service are in this file:
    Code:
    /etc/services
    For example, you should be able to see the default ssh port like this:
    Code:
    grep ssh /etc/services
    Regards.

  5. #5
    Join Date
    Sep 2007
    Beans
    615
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: nautilus connect to server ssh and sftp "access denied"

    that is definitely weird.

    the grep command tells me ssh is using 22.
    Code:
    lotus@lotus-laptop:~$ grep ssh /etc/services
    ssh		22/tcp				# SSH Remote Login Protocol
    ssh		22/udp
    To make sure I didn't miss something I removed the port 2222 agian and left only port 22 on the server and this is what I get.
    Code:
    lotus@lotus-laptop:~$ ssh 10.0.0.124
    ssh: connect to host 10.0.0.124 port 2222: Connection refused
    What ever on the laptop is defaulting to 2222 must be what is causing the "connect to server" to get denied before asking for password but when I add 2222 back to sshd_config everything works fine.

    This is probably good anyway because I'll start specifying port 2222 on my win machine but will be trying to figure out what's going on here on my laptop with ubuntu.

  6. #6
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,836
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: nautilus connect to server ssh and sftp "access denied"

    Interesting.

    The other place where the port can be changed, on the client side, is the ssh client configuration file:
    Code:
    /etc/ssh/ssh_config
    There the default port to 'make the call' can be set too. To easily see if it changed:
    Code:
    grep -i port /etc/ssh/ssh_config
    Regards.

  7. #7
    Join Date
    Sep 2007
    Beans
    615
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: nautilus connect to server ssh and sftp "access denied"

    Quote Originally Posted by papibe View Post
    Interesting.

    The other place where the port can be changed, on the client side, is the ssh client configuration file:
    Code:
    /etc/ssh/ssh_config
    There the default port to 'make the call' can be set too. To easily see if it changed:
    Code:
    grep -i port /etc/ssh/ssh_config
    Regards.
    That's it! The client side is set to use port 2222. I have no idea why but am guessing that at some point in time I may have been trying to figure out ssh and set it to 2222? I don't know. But I'd say that solves my issue

    Thanks for all your help papibe

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •