ce_emre Posted October 11, 2006 Report Share Posted October 11, 2006 I use Mandriva 2006 and i have a problem about ssh connection . I want to open the ssh connection port (22.port) , but how i do this ? Please solve my problem. Thank you. Link to comment Share on other sites More sharing options...
4di Posted October 11, 2006 Report Share Posted October 11, 2006 i guess that the port is closed (blocked ) by your firewall , so to open it you just do as a root , and place this rule in your firewall script at the start .... pls give more details ! #iptables -A INPUT -p tcp -m tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT Link to comment Share on other sites More sharing options...
ianw1974 Posted October 11, 2006 Report Share Posted October 11, 2006 You can use the command line using: ssh -l username ip_address where username is the user that you want to use to login with and where ip_address is the ip address of the machine you want to connect to. If you want a gui-based app, use an app called putty, as it's really good for ssh. Link to comment Share on other sites More sharing options...
ce_emre Posted October 11, 2006 Author Report Share Posted October 11, 2006 root@localhost ~]# iptables -A INPUT -p tcp -m tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT [root@localhost ~]# ssh 10.0.0.105 ssh: connect to host 10.0.0.105 port 22: Connection refused [root@localhost ~]# so ,it did not work. Link to comment Share on other sites More sharing options...
ianw1974 Posted October 11, 2006 Report Share Posted October 11, 2006 Are you sure sshd is running on the system you're trying to connect to? service sshd status and also: netstat -tan to see if port 22 is listening. And if it's not: service sshd start and to make sure it starts at bootup: chkconfig sshd on does that help? Link to comment Share on other sites More sharing options...
ce_emre Posted October 11, 2006 Author Report Share Posted October 11, 2006 Thanks for your helping ianw1974 , but it did not work.I think sshd isn't running on my system and port 22 isn' listening. [root@localhost ~]# service sshd status Cannot find sshd service Usage: service -[Rfshv] SERVICE ARGUMENTS -f|--full-restart: Do a fullrestart of the service. -R|--full-restart-all: Do a fullrestart of all services currently running. -s|--status-all: Print a status of all services. -d|--debug: Launch with debug. -h|--help: This help. -v|--version: Print version. [root@localhost ~]# service sshd start Cannot find sshd service Usage: service -[Rfshv] SERVICE ARGUMENTS -f|--full-restart: Do a fullrestart of the service. -R|--full-restart-all: Do a fullrestart of all services currently running. -s|--status-all: Print a status of all services. -d|--debug: Launch with debug. -h|--help: This help. -v|--version: Print version. version 1.14 Link to comment Share on other sites More sharing options...
ianw1974 Posted October 11, 2006 Report Share Posted October 11, 2006 OK, cool, so let's install it. I'm assuming Mandriva, so: urpmi ssh-server will install ssh. Then you can do: chkconfig sshd on and: service sshd start and then try to connect again. Link to comment Share on other sites More sharing options...
ce_emre Posted October 11, 2006 Author Report Share Posted October 11, 2006 [root@localhost ~]# urpmi ssh-server The following packages can't be installed because they depend on packages that are older than the installed ones: openssh-server-4.2p1-1mdk Continue installation anyway? (E/h) E her?ey zaten kurulu The following package names were assumed: openssh-server [root@localhost ~]# urpmi openssh-server The following packages can't be installed because they depend on packages that are older than the installed ones: openssh-server-4.2p1-1mdk Continue installation anyway? (E/h) e her?ey zaten kurulu [root@localhost ~]# "her?ey zaten kurulu" is the meaning that allthings already established. Link to comment Share on other sites More sharing options...
ce_emre Posted October 11, 2006 Author Report Share Posted October 11, 2006 I want to open the 22. port for ssh , but i dont know how?. Please help me. [this post has been merged from another thread - tyme] Link to comment Share on other sites More sharing options...
ianw1974 Posted October 11, 2006 Report Share Posted October 11, 2006 If you have firewall enabled, just go to System/Configuration/Configure Your Computer. Then in Security, go for the firewall option. Then enable the option for SSH (port 22) and you'll be OK. [this post has been merged from another thread - tyme] Link to comment Share on other sites More sharing options...
ianw1974 Posted October 11, 2006 Report Share Posted October 11, 2006 OK, so it should be installed. look in /etc/init.d/ for a file called sshd. Does it exist? Link to comment Share on other sites More sharing options...
ce_emre Posted October 11, 2006 Author Report Share Posted October 11, 2006 No ,it doesn't.i search sshd file and result sshd file is only in the /home/usr... and /usr director. I think i must do firewall setting (open the 22.port for ssh) Thanks... Link to comment Share on other sites More sharing options...
tyme Posted October 11, 2006 Report Share Posted October 11, 2006 I have merged the marked posts above into this thread as they are part of the same question/problem. Please keep related questions to one topic when attempting to solve a singular problem. On the topic: it appears that you do not have ssh properly installed, and so even if you open the port 22 in your firewall you still won't be able to access ssh because it's not installed and it's not running. As such, we need to get ssh installed. Are all your sources/repositories updated? Have you upgraded any packages manually (in a manner other than using the official repositories or outside of urpmi)? Link to comment Share on other sites More sharing options...
ianw1974 Posted October 12, 2006 Report Share Posted October 12, 2006 I was just coming to that conclusion too, perhaps do: urpme ssh-server to remove it, and then reinstall it again, but make sure you have all your urpmi sources set up as tyme mentions. You need main/contrib/updates at least. Link to comment Share on other sites More sharing options...
ce_emre Posted October 12, 2006 Author Report Share Posted October 12, 2006 I use Mandriva 2006 and I want to use ssh command but ssh server hasn't installed on my machine yet.So i must install openssh-server .(openssh-4.2pl has downloaded on my machine.i think (maybe not) only client side has downloaded not server side) How do i install openssh server ? Please help me... Thanks... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now