Saturday, April 22, 2017

Open startup folder in Windows 10

To open system level(common) startup location using Run dialog (WinKey+r), type:
shell:common startup
To open current user's startup location:
shell:startup
or from the command line (cmd.exe) do:
explorer.exe shell:common startup


Reference(s):
http://8thstring.blogspot.com/2013/08/open-all-users-start-up-folder-in.html
http://www.winhelponline.com/blog/shell-commands-to-access-the-special-folders/
http://www.osattack.com/windows-7/huge-list-of-windows-7-shell-commands/
http://support.microsoft.com/kb/2806079

Specifying port number as part of IPv6 address

Enclose IPv6 address with square brackets followed by colon and the port. For example to check if port 80 is open on 2607:f8b0:4000:811::2004, do:

c:\> psping -6 [2607:f8b0:4000:811::2004]:80

Reference(s):
http://stackoverflow.com/questions/186829/how-do-ports-work-with-ipv6

Sunday, April 02, 2017

Enable SSH server on QNX 6.5

This is quick start guide how to run ssh server on QNX. Tested on QNX 6.5 (650SP1-VM.tar).

# ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N ''
# ssh-keygen -t rsa -b 1024 -f /etc/ssh/ssh_host_rsa_key -N ''

This is not security best practice but this is only a test machine. Enable direct root ssh login to the machine.
# sed -i 's/#PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config

Start ssh service
# /usr/sbin/sshd

Use /usr/sbin/sshd -ddd to view debug output

Reference:
http://www.qnx.com/developers/docs/660/index.jsp?topic=%2Fcom.qnx.doc.neutrino.utilities%2Ftopic%2Fs%2Fsshd.html