[HELP] Trying to connect to my server via "ConnectBot"
Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can you create an SSH connection with something other than ConnectBot? Does the server use keys instead of username/password (my experience is that ConnectBot is a little weird about keys)? Have you looked in the SSH server logs to see if there are any clues there? You also might go through the ConnectBot entry for your server (just long-press the line to edit) and see if anything odd jumps out there. It kind of looks like ConnectBot isn't reaching your server, but that is really a guess.
When I use iSSH on iPhone it works, but for some reason it doesn't connect on ConnectBot
Well, that means that the SSH server is working.
Are you trying to do this over 3G or over wireless? Also, have you looked at the log files on your SSH server to see if it is complaining about anything?
Are you trying to do this over 3G or over wireless? Also, have you looked at the log files on your SSH server to see if it is complaining about anything?
I am doing it over 3g however same thing applies when I do it over wireless.
I checked a few logs, didn't find anything unusual. Any specific log I should check?
I'm not sure what logs CentOS uses, but on Slackware it is /var/log/syslog or /var/log/messages. Have a look in /var/log and look for entries with ssh in them as sshd is usually very good about identifying its entries.
Quote:
I am doing it over 3g however same thing applies when I do it over wireless.
Are you using a domain name or an IP address as the target? I'm trying to figure out if this is somehow a DNS problem. I know it shouldn't be since an iPhone works, but it is still worth ruling out for the Droid. You might try pinging your ssh server and see if your Droid can actually see it (there is at least on decent free ping app in the Market).
I'm not sure what logs CentOS uses, but on Slackware it is /var/log/syslog or /var/log/messages. Have a look in /var/log and look for entries with ssh in them as sshd is usually very good about identifying its entries.
Are you using a domain name or an IP address as the target? I'm trying to figure out if this is somehow a DNS problem. I know it shouldn't be since an iPhone works, but it is still worth ruling out for the Droid. You might try pinging your ssh server and see if your Droid can actually see it (there is at least on decent free ping app in the Market).
I know it is connecting to the server because when I take my phones IP out of the whitelist I get a connection refused error instead of the one I listed in my first post. Also I am connecting using a domain name.
I know it is connecting to the server because when I take my phones IP out of the whitelist I get a connection refused error instead of the one I listed in my first post. Also I am connecting using a domain name.
OK, that is good. However it does mean that your ssh server is rejecting the connection for some reason, and I'm hoping it is putting that reason in the log file.
Any news? Got a Samsung Galaxy. App 'ConnectBot' installed fine, and goes through connection procedures (from what it seems) just fine. Only it refuses to let me in, i.e. says "password authentication failed" although I _know_ I have entered the correct password. Also, I can connect just fine from other places eg. via PuTTY. Also, passphrase contains no non-ASCII characters, so it better not be some coding issue. Ideas?
Not sure if you still look at this thread, but it's probably trying to log in as your root user, and your ssh server config likely has root login access disabled (and it should remain that way). To specify the username logging in to your SSH server, open ConnectBot and put your username in front of the servername followed by '@'.
the ":portnumber" isn't needed, but I obfuscate my ssh server port to avoid all the random hits from port scans resulting from having port 22 public. If you use the standard tcp port (22), then you can leave the last part off.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.