ssh problems

I need to install ssh, but can’t find a QNX version anywhere. Can someone point me in the right direction?

Thanks!

It’s on the 3rd party CD if you are running QNX 6.2.
Or if you are on QNX 6.3, check the QOpenCD project.

Thanks noc!

I’m trying to add ssh to my buildfile, but I’m still running into problems. Does this buildfile look correct?

[virtual=x86,bios +compress] boot = {
startup-bios
PATH=/proc/boot procnto
}

[+script] startup-script = {
# Start up some consoles
devc-con -n4 &
reopen /dev/con1

display_msg Welcome to QNX

# Start the PCI server
seedres
pci-bios &
waitfor /dev/pci

# Start IDE and mount the flash disk in /usr/hdd
devb-eide blk automount=hd0t77:/usr/hdd &

# Start Networking
io-net -d ns83815 duplex=0 -p tcpip
waitfor /dev/socket
ifconfig en0 192.168.1.221 netmask 255.255.255.0
route add default 192.168.1.1
inetd

Some common servers

pipe &
mqueue &
devc-ser8250 &
devc-pty &

# Start a debug server for debugging programs
waitfor /dev/ser1
[+session] pdebug /dev/ser1 &

# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi

# Start some extra shells on other consoles

reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &

# Start a high priority shell just in case
reopen /dev/con4
[pri=25 +session] sh &

# Start the main shell
reopen /dev/con1
[+session] sh

}

Make the /temp point to the shared memory area

[type=link] /tmp=/dev/shmem

Programs require the runtime linker (ldqnx.so) to be at a fixed location

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
libc.so

libraries

[type=link] /lib/libm.so.2=/proc/boot/libm.so
libm.so
libz.so

[data=c]

Executables must currently be below this line

Include a console driver

devc-con

Include pci server

pci-bios
seedres

Network related items

/lib/dll/devn-ns83815.so # National Semiconductor DP83815 “Macphyter”
/lib/dll/npm-tcpip.so
libsocket.so
/etc/termcap=/etc/termcap
/etc/hosts=/etc/hosts
/etc/resolv.conf=/etc/resolv.conf
/etc/inetd.conf=/etc/inetd.conf
/etc/services=/etc/services
/etc/protocols=/etc/protocols
/etc/ftpusers=/etc/ftpusers
/etc/passwd=/etc/passwd
/bin/login=/bin/login

Use the “public domain korn shell” as the default shell “sh”

sh=ksh

Other executables

libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so

pdebug
pipe
mqueue
devc-ser8250
devc-pty
devb-eide
ls
cat
ps
pidin
uname
find
/sbin/io-net
/sbin/ifconfig
/sbin/route
/usr/bin/telnet
/usr/bin/ftp
/usr/bin/ping
/usr/sbin/inetd
/usr/sbin/telnetd
/usr/sbin/ftpd
/usr/bin/ssh

Thanks for your help!

Oooops, sorry, i posted an older buildfile. This is what I have:

------------ BEGIN BUILDFILE ------------

[virtual=x86,bios +compress] boot = {
startup-bios
PATH=/proc/boot procnto
}

[+script] startup-script = {
# Start up some consoles
devc-con -n4 &
reopen /dev/con1

display_msg Welcome to QNX

# Start the PCI server
seedres
pci-bios &
waitfor /dev/pci

# Start IDE and mount the flash disk in /usr/hdd
devb-eide blk automount=hd0t77:/usr/hdd &

# Start Networking
io-net -d ns83815 duplex=0 -p tcpip
waitfor /dev/socket
ifconfig en0 192.168.1.221 netmask 255.255.255.0
route add default 192.168.1.1
random -t -p &
inetd

Some common servers

pipe &
mqueue &
devc-ser8250 &
devc-pty &

# Start a debug server for debugging programs
waitfor /dev/ser1
[+session] pdebug /dev/ser1 &

# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi

# Start some extra shells on other consoles
reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &

# Start a high priority shell just in case
reopen /dev/con4
[pri=25 +session] sh &

# Start the main shell
reopen /dev/con1
[+session] sh

}

Make the /temp point to the shared memory area

[type=link] /tmp=/dev/shmem

Programs require the runtime linker (ldqnx.so) to be at a fixed location

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
libc.so

Libraries

[type=link] /lib/libm.so.2=/proc/boot/libm.so
libm.so
/usr/lib/libz.so.2
/usr/lib/libz.so.3
/usr/lib/libcrypto.so.0.9.7

[data=c]

Executables must currently be below this line

Include a console driver

devc-con

Include pci server

pci-bios
seedres

Network related items

/lib/dll/devn-ns83815.so # National Semiconductor DP83815 “Macphyter”
/lib/dll/npm-tcpip.so
libsocket.so
/etc/termcap=/etc/termcap
/etc/hosts=/etc/hosts
/etc/resolv.conf=/etc/resolv.conf
/etc/inetd.conf=/etc/inetd.conf
/etc/services=/etc/services
/etc/protocols=/etc/protocols
/usr/bin/ssh

Use the “public domain korn shell” as the default shell “sh”

sh=ksh

Other executables

libcam.so
io-blk.so
cam-disk.so
fs-qnx4.so

pdebug
pipe
mqueue
devc-ser8250
devc-pty
devb-eide
ls
cat
ps
pidin
uname
find
random
/sbin/io-net
/sbin/ifconfig
/sbin/route
/usr/bin/ping
/usr/sbin/inetd
/usr/sbin/sshd

------------ END BUILDFILE ------------

I can ping successfully between two targets, but when I try to ssh, my connection times out. Any ideas?

Thanks!

openssh may need other files such as /etc/openssh/*

Instead of putting it in the buildfile, I would suggest you try it on a normal system to make sure everything is working. then pick up all files over to your target.

thanks, noc, i’ll try that

I’m still having trouble getting it to work. I’m using QNX 6.3 and I obtained openssh from the QOpenCD project repository, as well as zlib and openssl. After installing, ssh runs, but i get a connection refused message.

do i need to edit some files to get this to work? there doesn’t seem to be any ssh or openssh directory on my system.

Thanks!