Key Based Authentication for SSH

What is key based authentication for ssh?

keyKey based authentication for SSH is a way to connect remotely to another computer/server using an encrypted file you HAVE and an optional password you KNOW to unlock the file. Key based authentication has the advantage of being more secure and/or more convenient.

Why?

Password based authentication:
Logging in via password over SSH encrypts your password so it ends up looking like this:
..t-:p.%.E.{..E..X7.@.@.~....s..............NXP...{W..!8..;.eh9..N......#....q..1f...:...D9R0 zy
Because the password is encrypted, it won’t be seen in plain text over the wire which is good. If the password is short or simple enough, a hacker will be able to crack your password. Assuming the password is good enough, password based authentication’s strength comes from keeping that knowledge from others.

Key based authentication allows you to connect remotely using an encrypted file as a key instead of a password. Key based authentication gives you the option to continue reading the rest of the article…

open files or directory from OS X terminal

Terminal loves Finder

Terminal loves Finder

In Mac OS X Terminal open the current folder in Finder by using the command ‘open .’ You can also open a file with its default application by using ‘open fileName.fileExtension’

Examples:

If the current working directory in terminal is “/System/Library” then ‘open .’ would open “/System/Library” in finder.

‘open test.txt’ would open the text file “test.txt” in TextEdit.

‘open *’ would open all the files in the current directory with their default applications.

‘open *.jpg’ opens all jpg images in folder.

‘open [ABC]*.pdf’ opens all pdfs that start with an uppercase A, B, or C.

The possibilities and the power of the ‘open’ command in terminal are astounding. Learn even more about the command by using the command ‘man open’ or just ‘open’ and the terminal will display more information on that command and how it is used. If you use the ‘man open’ command spacebar will show the next page and ‘q’ will exit the manual.

Sources
————-
The heart in the image was acquired from http://www.eyehook.com/free/love.html under the Creative Commons Attribution 2.5 Generic License

URL: http://www.eyehook.com/free/love.html Accessed: 2009-4-24. (Archived by WebCite® at http://www.webcitation.org/5h1DQldAm)

License
————-
Creative Commons License
Open files or directory in Finder from OS X Terminal by Mike Grace is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.

Can’t execute binary file – linux

terminal

The Problem

Executing binary file in terminal fails returning “Can’t execute binary file”.

Fix

In terminal enter “chmod +x [filename]”

Why

chmod +x adds the permission for the user to execute the binary file.

—————–
References

chmod. Wikipedia. URL:http://en.wikipedia.org/wiki/Chmod. Accessed: 2009-04-10. (Archived by WebCite® at http://www.webcitation.org/5fvIhQ3Zg)