Password-less SSH Login
May 8, 2006 | 14 Comments
On occasion I have the need to establish trust relationships between Unix boxes so that I can script file transfers. In short, here’s how you leverage SSH to do that. Using the example of trying to connect from server ‘ender’ to get a file on ‘bean’ follow this example:
- Connect to ender
- type:
ssh-keygen -t rsa- default directory for keyfiles will be ~/.ssh/
- if you do not want to be prompted, leave passphrase blank
- copy the contents of .ssh/id_rsa.pub (there should only be one line)
- place this line on bean, in ~/.ssh/authorized_keys
- that’s it, you should now be able to ssh/sftp/scp from ender to bean without being prompted for a password!
For further detail and a more complete example check this site out.
Update: You must have "RSAAuthentication yes" in your /etc/ssh/sshd_config file. On many Linux installations this setting is commented out in a default install
Tags: authentication, keygen, linux, pass phrase, password, scp, sftp, solaris, ssh, system administration, unix
EditPlus - The Greatest Text Editor
April 3, 2006 | 9 Comments
EditPlus is unmatched in a crowded space of desktop text editors.
This is an application which gracefully handles syntax highlighting for any imaginable programming language. Part of the strength here is in the simplicity of defining highlighting rules. They are all defined in easy to understand text files which are a breeze to modify or supplement. Of course all the common ones are built-in (C, C++, Java, Java Script, PHP, Perl, ASP, HTML, CSS, etc) but there are also a ton of user contributed languages (Maya, Quake 2, Ada, QBasic, FoxPro, LaTex, and so many more).
For those who are interested, it also supports auto-completion files in a similar manner.
Another major win is it’s ability to handle remote files through SFTP (or FTP) in such a way that they are no more difficult to work with than a local file. Other text editors try to accomplish and at least succeed at having the feature, but I’ve seen none that are as seamless to work with.
Keyboard shortcuts can be user defined, so any operation you find yourself doing regularly can quickly be mapped to your favorite keystroke. A huge win for developers.
Finally, the regular expression find and replace has made ad-hoc manipulation of text files something I can do without even thinking about it. All the fantastic abilities that surround this functionality add greatly to my comfort level with the product.
Unfortunately, I have on e criticism. There is no Mac version… This is most unfortunate to me, because EditPlus is the last reason I have for using Windows.
If you aren’t already using EditPlus, and you are on a PC, try this text editor for awhile. You won’t be sorry.
Tags: css, edit plus, editor, editplus, ide, php, regular expression, sftp, shortcut, syntax highlighting, text editor
