This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ssh: connect to host 192.168.13.21 port 22: Connection refused

Hi,

I have Vayu Evm xc5777x CPU board(DRA7XX).

I am trying to use ssh for gdb debugging using ccs 5.5.

I have successfully able to build and port the ssh on the board .

For this I am using the source code of the following packages:

1. zlib-1.2.7 .

2. openssl-1.0.0c .

3. openssh-6.6p1 .

After that  I am using the following steps to compile them:

Build Zlib:

    cd zlib-1.2.7
    CC=arm-linux-gnueabihf-
    ./configure --prefix=$HOME/zlibArm
    make 
    make install

Build OpenSSL:

    export cross=arm-linux-gnueabihf-
    cd openssl-1.0.0c 
    ./Configure dist --prefix=$HOME/opensslArm
    make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
    make install

Build OpenSSH:

      ./configure --prefix=$($PWD) CC=arm-linux-gnueabihf-gcc AR=arm-linux-gnueabihf-ar --host=arm --with-libs \
     --with-zlib=/home/mistral/zlibArm \ --with-ssl-dir=/home/mistral/opensslArm --disable-strip --          prefix=/home/mistral/Downloads/openssh-6.6p1/build/bin  
      

       make 

       make install

After that I put all the required files on the board .

Also I have uncomment the Port 22 in file /etc/sshd_config file.


root@dra7xx-evm:~# ssh
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-p port]
           [-Q cipher | cipher-auth | mac | kex | key]
           [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] [user@]hostname [command]


 But I am getting an  error.

ssh: connect to host 192.168.13.21 port 22: Connection refused

Please help in this regards

Regards

Naveen Sheeti