Author:
erics , May 9th, 2023
I have been using RSA SSH keys forever to login to my various AWS EC2 instances. With macOS Ventura 13.3.1 ssh failed with the “Permission Denied” error. Using ssh -vvv, I saw that the RSA key was now being rejected. After much research, I decided to implement new keys on the client (Ventura) side using […]
Categories: How-To's , Technology Tags: AWS , denied , ed25519 , Error , Generate , howto , key , Linux , MacOS , Permission Denied , public , Public Key , ssh , ssh-keygen , sshd , tips , Ventura
| No comments
Author:
erics , February 4th, 2019
Use the ssh-keygen command on a computer to which you’ve downloaded your private key .pem file; for example: First, ensure permissions will allow ssh-keygen to work: chmod 600 /path/to/the/file/your-key-pair.pem Then generate an RSA public key: ssh-keygen -y -f /path/to/the/file/your-key-pair.pem > your-key-pair.pub
Categories: How-To's , Technology Tags: .pem , .pub , Amazon , apple , AWS , cli , howto , key , key-pair , KeyPair , Linux , Mac , MacOS , macosx , Pubkey , public , Public Key , ssh-keygen , tips
| No comments
Author:
erics , June 29th, 2016
root@myHost # apt-get update Hit http://cloudfront.debian.net wheezy Release.gpg Hit http://cloudfront.debian.net wheezy-updates Release.gpg Hit http://cloudfront.debian.net wheezy-backports Release.gpg Hit http://cloudfront.debian.net wheezy Release Hit http://cloudfront.debian.net wheezy-updates Release Hit http://cloudfront.debian.net wheezy-backports Release Hit http://cloudfront.debian.net wheezy/main Sources Hit http://cloudfront.debian.net wheezy/main amd64 Packages Hit http://cloudfront.debian.net wheezy/main Translation-en Hit http://cloudfront.debian.net wheezy-updates/main Sources Hit http://security.debian.org wheezy/updates Release.gpg Get:1 http://cloudfront.debian.net wheezy-updates/main amd64 Packages/DiffIndex [2,488 […]
Categories: How-To's , Technology Tags: apt-get , Debian , Error , howto , key , Linux , public , Public Key , tips
| No comments
Author:
erics , October 22nd, 2012
Add this to your theme’s functions.php file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Add the [private] shortcode. */
add_shortcode ( 'private' , 'is_user_logged_in_shortcode' ) ;
/* Add the [public] shortcode. */
add_shortcode ( 'public' , 'is_user_not_logged_in_shortcode' ) ;
function is_user_logged_in_shortcode ( $ attr , $ content = null ) {
/* If it is a feed or the user is not logged in, return nothing. */
if ( is_feed ( ) || ! is_user_logged_in ( ) || is_null ( $ content ) )
return '' ;
/* Return the content. */
return do_shortcode ( $ content ) ;
}
function is_user_not_logged_in_shortcode ( $ attr , $ content = null ) {
/* If it is a feed or the user is logged in, return nothing. */
if ( is_feed ( ) || is_user_logged_in ( ) || is_null ( $ content ) )
return '' ;
/* Return the content. */
return do_shortcode ( $ content ) ;
}
Categories: How-To's , Technology Tags: howto , Members-Only , php , Provate , public , ShortCode , tips , WordPress
| No comments
Author:
erics , September 27th, 2009
% ssh-keygen -x -f id_dsa > ssh2.pubkey
Categories: How-To's , Technology Tags: convert , howto , key , public , ssh , tips
| No comments