#!/bin/shKEY='$HOME/.ssh/id_dsa.pub'if [! -f ~/.ssh/id_dsa.pub ];then echo 'private key not found at $KEY' echo '* please create it with 'ssh-keygen -t dsa' *' echo '* to login to the remote host without a password, don't give the key you create with ssh-keygen a password! *' exitfiif [ -z $1 ];then echo 'Please specify user@host.tld as the first switch to this script' exitfiecho 'Putting your key on $1. 'KEYCODE=`cat $KEY`ssh -q $1 'mkdir ~/.ssh 2>/dev/null; chmod 700 ~/.ssh; echo '$KEYCODE' >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys'echo 'done!' If you SSH into many machines, the script can save you a lot of manual work. [ robg adds: I tested this, and it works as described -- I edited it to reflect the fact that I have an RSA key, not a DSA key (so I just changed id_dsa.pub to id_rsa.pub). When you run the script, you'll be prompted for the password on the remote machine; after it runs, you can connect without a password (if you're not using a passphrase).].

SSH keys are fairly simple to setup, especially when using the native terminal applications available in either Linux or Mac OSX. In terminal, type the. Remote Login is a feature in Mac OS X’s Sharing preferences that allow remote users to connect to a Mac in a secure fashion by using the OpenSSH protocols. Essentially, it starts an SSH server on a Mac, which includes the ability to accept incoming SSH connections, which is the secure replacement for telnet.

Best video player for mac. VLC (initially VideoLAN Client) is a highly portable multimedia player for various audio and video formats, including MPEG-1, MPEG-2, MPEG-4, DivX, MP3, and OGG, as well as for DVDs, VCDs,. MPEG-4 Part 14 or MP4 file format is a multimedia container format standard specified as a part of MPEG-4. MPEG-4 contains MPEG-4 encoded video and Advanced Audio Coding (AAC)-encoded audio content. Usually it uses MP4 extension for its files. Elmedia Player is a media player for Mac with an extended list of supported formats: AVI, FLV, MP4, MP3, MOV, DAT, etc. The player offers its users a native web browser for browsing and watching online videos directly in the app.

This is nice, but my main problem is figuring out how to export my keys to different flavors for different machines. It drives me batty. I need to go from OSX to various linux and freebsd machines and it never seems to be as easy as I expect. I RTFM, import / export the public keys, fiddle with things and half the time can never get it to work with no indication as to why. I try running the ssh client in super-debug mode and it spits out a lot of things its trying, but that's usually not what I need (the server side of the story).

I wish there were a definitive spec somewhere on how to do this for various machines or a single converter app that reads everything, etc. Thanks, Pat [ ]. If you ask three Bourne shell scripters to solve a problem, you'll probably get 9 different ways to solve it. I made a couple of corrections to this version: 1) use $KEY variable consistently, 2) set the umask to user rwx only and you don't need chmods anywhere, 3) use $* to pass '-p portnum' arguments for nonstandard ports, 4) mkdir -p argument ignores existing directories, 5) the KEYCODE variable line wasn't necessary, just in-line the backquoted cat command. #!/bin/sh KEY='$HOME/.ssh/id_dsa.pub' if [!

-f $KEY ];then echo 'private key not found at $KEY' echo '* please create it with 'ssh-keygen -t dsa ' *' exit fi if [ -z $1 ];then echo 'Usage: $0 username@host' exit fi echo 'Putting your key on $1. ' ssh -q $* 'umask 0077; mkdir -p ~/.ssh; echo '`cat $KEY`' >> ~/.ssh/authorized_keys' echo 'done!'