If you’ve been following the recent ssh vulnerabilities, you’ve been upgrading your OpenSSH installs rather often lately. The problem that a number of people are running into is how to restart the ssh daemon safely on a remote machine, without killing your own connection. Many people are simply killing the PIDs with a SIGHUP, but this will only reload the config file, not run the new binary. You need to kill the LISTENING PID, then restart sshd. Here’s how to do it, once you’ve compiled the latest version:
% lsof -i tcp:22
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sshd 7030 root 4u IPv4 35118 TCP 192.168.100.1:ssh->192.168.100.27:33513 (ESTABLISHED)
sshd 7032 root 4u IPv4 35118 TCP 192.168.100.1:ssh->192.168.100.27:33513 (ESTABLISHED)
sshd 32068 root 3u IPv4 28204 TCP *:ssh (LISTEN)
The PID in the last line is the one we need to kill. So…
% kill 32068
Now restart our new, lemony-fresh sshd…
% sshd
That should do it!
nick Uncategorized
One thing that I discovered recently was that if you have the bash_completion package installed and public key auth setup with your ssh server, you can do tab completion on the remote side of the command. So if you do:
scp someuser@example.com:/home/some<tab>
It will complete the directory to /home/someuser. That’s cool.
nick Uncategorized
Yesterday I made a patched version of the XDoclet Apache module that will generate dynamic form bean configuration for the struts-config.xml. The existing XDoclet struts.form tags only supported EJBs with generated form classes, which didn’t meet my needs. You can download the documented bundle here:
http://www.systemmobile.com/code/xdoclet-apache-module-sm-1_2b4.zip
Let me know if you have any questions. There is an example of the @struts.dynaform tags included in the bundle, so you can get started quickly.
nick Uncategorized
I’ve released StrutsDoc 0.4 this morning. You can download it from the SF site at http://struts.sf.net/projects/strutsdoc.
This release includes support for the Struts Validator, as well as a bugfix in the TilesPlugin.
nick Uncategorized
If you’re deploying Struts applications to WebSphere 4 (and possibly other versions), make sure that you’re not deploying the application with JSP precompiling on. If you do, you’ll probably get the following error:
Cannot find ActionMappings or ActionFormBeans collection
I believe that this is caused by the JSPs being compiled before the ActionServlet loads and reads the struts-config.xml. Let me know if you find another cause of this error.
nick Uncategorized