https://chrome.google.com/webstore/detail/swayfm-unified-music-medi/icckhjgjjompfgoiidainoapgjepncej
Mac + Media Keys + Google Music = Happy
Showing posts with label computers. Show all posts
Showing posts with label computers. Show all posts
2013-08-02
2013-06-04
Stolen from: http://www.cyberciti.biz/tips/ssh-public-key-based-authentication-how-to.html because ssh keygen shit is always useful.
The SSH protocol is recommended for remote login and remote file transfer which provides confidentiality and security for data exchanged between two computer systems, through the use of public key cryptography. The OpenSSH server provides this kind of setup under Linux. It is installed by default. This how-to covers generating and using ssh keys for automated usage such as:
- Automated Login using the shell scripts.
- Making backups.
- Run commands from the shell prompt etc.
First, log on to your workstation ( for example log on to workstation called admin.fbsd.nixcraft.org as vivek user). Please refer the following sample setup - You will be log in, on your local system, AS THE USER you wish to make passwordless ssh connections.
Task: Generating SSH Keys
ssh key based authentication
Create the cryptographic Key on FreeBSD / Linux / UNIX workstation, enter:
Assign the pass phrase (press [enter] key twice if you don't want a passphrase). It will create 2 files in ~/.ssh directory as follows:
ssh-keygen -t rsaAssign the pass phrase (press [enter] key twice if you don't want a passphrase). It will create 2 files in ~/.ssh directory as follows:
- ~/.ssh/id_rsa : identification (private) key
- ~/.ssh/id_rsa.pub : public key
Use scp to copy the id_rsa.pub (public key) to rh9linux.nixcraft.org server as authorized_keys2 file, this is know as Installing the public key to server.
From FreeBSD workstation login to server:
Changing the pass-phrase on workstation (if needed):
Use of ssh-agent to avoid continues pass-phrase typing
At freebsd workstation type:
Type your pass-phrase
scp .ssh/id_rsa.pub vivek@rh9linux.nixcraft.org:.ssh/authorized_keys2From FreeBSD workstation login to server:
ssh rh9linux.nixcraft.orgChanging the pass-phrase on workstation (if needed):
ssh-keygen -pUse of ssh-agent to avoid continues pass-phrase typing
At freebsd workstation type:
ssh-agent $BASH
ssh-addType your pass-phrase
Now ssh server will not use prompt for the password. Above two commands can be added to your ~/.bash_profile file so that as soon as you login into workstation you can set the agent.
Deleting the keys hold by ssh-agent
To list keys, enter:
To delete all keys, enter:
To delete specific key, enter:
ssh-add -lTo delete all keys, enter:
ssh-add -DTo delete specific key, enter:
ssh-add -d key2013-05-28
2012-06-24
Login window shortcut for 10.6/10.7
This has plagued me since I've stopped using Quicksilver/GSB (Google Search Box) - no shortcut key to the login window which I like to use to lock the screen. I start locking my screen out of habit due to abusive coworkers, but slowly relied on it for basic security - all my stuff is online. Due to delicious delicious cookies, you can probably look at a ton of personal stuff online. Anyhoo: http://superuser.com/questions/45740/fast-user-switching-apple-menu/46308#46308
Great article, <3 keyboard shortcuts, <3 my mac again (not that I stopped).
Great article, <3 keyboard shortcuts, <3 my mac again (not that I stopped).
2012-01-22
S/CP/SH BatchMode
Totally stolen via some internet page. ssh and scp use the same -o "BatchMode". The scp -B option is also very handy, however scripts are already running and I'm not going to change them.
1. ssh -o “BatchMode yes” Usage Example
If you have the password less login enabled, following example will login to the remote host and execute the who command without asking for the password.
local-host# ssh ramesh@remote-host who
If the password less login is not enabled, it will prompt for the password on the remote host as shown below.
local-host# ssh ramesh@remote-host who ramesh@remote-host's password:
If you use ssh -o “BatchMode yes”, then it will do ssh only if the password-less login is enabled, else it will return error and continues.
local-host# ssh -o "BatchMode yes" ramesh@remote-host Command
Batch mode command execution using SSH — success case
local-host# ssh -o "BatchMode yes" ramesh@remote-host who .. [Note: This will display the output of remote-host's who command]
Batch mode command execution using SSH — Failure case
local-host# ssh -o "BatchMode yes" ramesh@remote-host who
Permission denied (publickey,password).
Note: If you didn’t use -o “BatchMode yes”, the above command would’ve asked for the password for my account on the remote host. This is the key difference in using the BatchMode yes option.
2. scp -B option Usage Example
If you use scp -B option, it will execute scp only if the passwordless login is enabled, else it will exit immediately without waiting for password.
$ scp -B file root@IP:PATH
SCP in Batch mode — Successful Case
local-host# scp -B /etc/yp.conf ramesh@remote-host:/tmp yp.conf 100% 84 0.1KB/s 00:00
SCP in Batch mode — Failure Case
In this example, if scp is possible without authentication, the command will execute else it will exit as shown below.
local-host# scp -B /etc/yp.conf ramesh@remote-host:/tmp
Permission denied (publickey,password).
lost connection
2011-05-17
X1 - Nerd Lust
Thinkpad X1 Review

Can I really move away from my Macbook Air, my 27" iMac (Quad-Core i7)? Can I? Ohhh I'd like to find out.
Can I really move away from my Macbook Air, my 27" iMac (Quad-Core i7)? Can I? Ohhh I'd like to find out.
Subscribe to:
Posts (Atom)