LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh connection problems (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-connection-problems-4175444252/)

rashmineha.s 01-05-2013 05:56 AM

ssh connection problems
 
hi,
i am not able to connect to ssh. the command
ssh localhost gives the error message
"connect to host localhost port 22:connection refused"

please help me solve the problem


the problem is solved
now iam trying to configure hadoop
i have set JAVA_HOME as \cygdrive\c\work\java\jdk1.6.0_30
echo $JAVA_HOME displays correctly
but the command bin/hadoop version displays the following error message
/bin/java : no such file or directory

EricTRA 01-05-2013 05:59 AM

Hello and welcome to LinuxQuestions,

What distribution and version are you running? Did you install the SSH server (openssh-server) and if so, is it started? Did you configure IPTABLES and forgot to allow localhost or port 22? Those are only a few options. You need to be more descriptive when communicating about a problem. The more information you provide the better we can help.

Kind regards,

Eric

trijit 01-09-2013 12:43 AM

Quote:

Originally Posted by rashmineha.s (Post 4863384)
hi,
i am not able to connect to ssh. the command
ssh localhost gives the error message
"connect to host localhost port 22:connection refused"

please help me solve the problem

paste the following output of the following commands:

1. telnet localhost 22

2. ls -l /etc/init.d | grep -i ssh

3. iptables -nL

4. cat /etc/issue or cat /etc/debian-release

5. uname -a


All times are GMT -5. The time now is 06:32 AM.