Hello, i believe generating a ssh key in gem5 will take quite some time. What ISA are you working on?
if you're using ARM, i recommend that you use qemu to generate the necessary keys (and also copy sshd/ssh binaries if possible) i followed this tutorial to create the qemu environment: https://wiki.ubuntu.com/Kernel/Dev/QemuARMVexpress On Tue, Nov 3, 2015 at 3:00 PM, Di Zhu <[email protected]> wrote: > Thank you for the reminder. Yes I think that's the problem. > > But before I ran /usr/sbin/sshd, I need to generate the ssh key. The > command "ssh-keygen -t rsa" returned: > ssh-keygen[959]: segfault at db176b50 ip 00000000db176b50 sp > 00007fffe38b8ad0 error 14 in libnss_files-2.6.1.so[7f84d9af0000+a000] > > It might be the problem of libnss, right? I tried downloading a new > version of glibc 2.6.1, but it didn't work. The version of openssh > is OpenSSH_4.7p1. > > Regards, > Di > > On Tue, Nov 3, 2015 at 8:33 AM, Rodrigo Cataldo <[email protected]> > wrote: > >> Did you run sshd before running ssh? >> also use /usr/sbin/sshd -d to check that everything is in order >> >> best regards >> >> On Sun, Nov 1, 2015 at 5:16 PM, Di Zhu <[email protected]> wrote: >> >>> Hi all, >>> >>> In the FS mode, I connect to the simulated OS with m5term. Then in the >>> terminal, I first set up the localhost with the following commands: >>> # ifconfig lo 127.0.0.1 >>> # route add -net 127.0.0.0 netmask 255.0.0.0 lo >>> >>> Then I can ping the localhost successfully. But when I try to ssh >>> localhost, I got the following error: >>> >>> root@(none) root # ssh -v localhost >>> OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007 >>> debug1: Reading configuration data /etc/ssh/ssh_config >>> debug1: Connecting to localhost [127.0.0.1] port 22. >>> debug1: connect to address 127.0.0.1 port 22: Connection refused >>> debug1: Connecting to localhost [::1] port 22. >>> debug1: connect to address ::1 port 22: Connection refused >>> ssh: connect to host localhost port 22: Connection refused >>> >>> I've also tried port 3500 (shown in ethertap source codes), and got the >>> same error. >>> >>> I tried adding the following lines to /etc/hosts.allow, but it didn't >>> work. >>> sshd: ALL >>> ssh: ALL >>> >>> Any ideas? >>> >>> Thanks in advance! >>> >>> Regards, >>> Di >>> >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
