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.
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
Hi Naveen,
Do you have any firewalls set or other specific network configuration, that may be blocking the use of this port 22 ?
Can you try renaming the port (i.e. to 22222) in /etc/sshd_config and restart the ssh service? This is just to test if something in your network is blocking port 22.
Best Regards,
Yordan
Hi Yordan,
I followed the step you suggested me to do. I changed port from 22 to 22222 in /etc/sshd_config. But restart the ssh service is not working for the board. I think some of the files are missing like ssh_host_key and related files.That I found in my desktop /etc/ssh folder.
Please suggest in this regards
Regards
Naveen Shetti
Hi Naveen,
Is there a ListenAddress set in your sshd_config ? If yes could you please comment it and try again to restart the ssh service.
Best Regards,
Yordan
Hi Yordon,
The main problem is that I am not able to restart the ssh service using the command :
/etc/init.d/ssh restart or service ssh restart.
I think the problem for this is that, /etc/init.d/ssh file is missing.
For command service ssh restart, it is showing error, service command not found.
Also I checked for ListenAddress setting in sshd_config file, it is already commented.
Please help in this regards.
Regards
Naveen Shetti