Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Recently installed openssh-client & openssh-server on my ubuntu 10.10 box, and my backtrack 5 laptop, yet I can't connect to either host using ssh root@192.168.100.5. Keep getting the port 22 connection refused error, and yeah I have updated my port rules to allow 22 on both machines, thanks in advance
PermitRootLogin is set to yes on this machine, so i should just edit sshd_config to PermitRootLogin no and then ssh should work into this box ?
No, that is not correct.
As stated before: If it is set to yes root login _is_ allowed. If set to no root login is _not_ allowed.
BTW: This should be done on the box you log into _AND_ you need to restart sshd to activate the changes made: /etc/init.d/ssh restart (could be sshd instead of ssh).
How about my other question (does it work when using a normal, unprivileged user)??
Hope this helps.
Last edited by druuna; 12-25-2011 at 04:22 AM.
Reason: spelling
sudo /etc/init.d/sshd restart is a command not found, and sudo /etc/init.d/ssh restart is a:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart ssh
ssh start/running, process 11623
and as to your other question, my laptop does not have a user other than root, but i will create one and test out that too
sudo /etc/init.d/sshd restart is a command not found, and sudo /etc/init.d/ssh restart is a:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart ssh
ssh start/running, process 11623
This is informational, but does make a point. Use service ssh restart instead of what I suggested to get rid of the above message.
Quote:
and as to your other question, my laptop does not have a user other than root, but i will create one and test out that too
You might have heard this before but I'll mention it nevertheless: Do all your work as a normal user, only use root if you really have to!
Hi,
To recap:
Backtrack --> ssh --> Ubuntu : Does work.
Ubuntu --> ssh --> Bactrack : Does not work.
Correct
I did check my sshd_config as well as my ssh_config files.
No, I could only ssh from my backtrack machine to my ubuntu box on a normal user.
could you direct me as to how I would shut down iptables/firewall ?
and i used sudo apt-get install openssh-client openssh-server
I did check my sshd_config as well as my ssh_config files.
No, I could only ssh from my backtrack machine to my ubuntu box on a normal user. could you direct me as to how I would shut down iptables/firewall ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.