Author:
erics, May 19th, 2023
I was unable to login from my old iMac running Yosemite to my new iMac running Ventura using RSA keys. It turns out that RSA key support was disabled in Ventura. To correct the problem, I added the following two lines to the bottom of /etc/ssh/sshd_config:
|
HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa |
Categories: How-To's, Technology Tags: denied, HostKeyAlgorithms, howto, key, login, MacOS, OSX, Permission, Pubkey, PubkeyAcceptedAlgorithms, PublicKey, RSA, ssh, sshd, tips, Ventura, Yosemite
|
No comments
Author:
erics, February 15th, 2021
First, get the container ID using docker ps:
|
shell> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3bcc0baffd68 dashboard:1.0.10-88 "docker-php-entrypoi…" 29 minutes ago Up 29 minutes 0.0.0.0:8080->80/tcp dashboard |
Now run docker exec -it {ContainerID} /bin/bash:
|
shell> docker exec -it 3bcc0baffd68 /bin/bash root@3bcc0baffd68:/var/www/html# exit |
You can make a simple shell script to ease typing a bit:
|
shell> cat dshell #!/bin/sh # dshell # usage: dshell ContainerID docker exec -it $* /bin/bash |
Categories: How-To's, Technology Tags: Container, Docker, docker exec, docker ps, Exec, howto, login, ps, Shell, tips
|
No comments
Author:
erics, August 25th, 2016
In this case I had done a restore from a MySQL 5.1 server to a MySQL 5.6 server. That was not too smart, because it broke the mysql database table structures and prevented me from logging in remotely. Local login worked both via the socket and TCP. mysql -u root -p -h remoteHostName Enter password: […]
Categories: How-To's, Technology Tags: Error, howto, login, mysql, mysql_upgrade, remote, Remote Login, tips
|
No comments
Author:
erics, January 19th, 2015
Simple Link
|
$redirect = ( is_home() ) ? false : get_permalink(); if ( is_user_logged_in() ) { $link = '<a href="' . wp_logout_url( $redirect ) . '" title="Log Out">Log Out</a>'; } else { $link = '<a href="' . wp_login_url( $redirect ) . '" title="Log In">Log In</a>'; } echo $link; |
Complex Menu Link
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
// Add login/logout links to a menu add_filter( 'wp_nav_menu_items', 'add_login_logout_to_menu', 50, 2 ); function add_login_logout_to_menu( $items, $args ){ // change theme location with your them location name $myMenu = 'secondary'; // or primary, etc. if( is_admin() || $args->theme_location != $myMenu ) { return $items; } $redirect = ( is_home() ) ? false : get_permalink(); if ( is_user_logged_in() ) { $link = '<a href="' . wp_logout_url( $redirect ) . '" title="' . __( 'Logout' ) .'">' . __( 'Logout' ) . '</a>'; } else { $link = '<a href="' . wp_login_url( $redirect ) . '" title="' . __( 'Login' ) .'">' . __( 'Login' ) . '</a>'; } $items .= '<li id="log-in-out-link" class="menu-item menu-type-link">'. $link . '</li>'; return $items; } |
Categories: How-To's, Technology Tags: add_filter, howto, Link, login, Login/Logout, Logout, Menu, tips, WordPress, wp_nav_menu_items
|
No comments
Author:
erics, January 8th, 2013
To change security authentication mode: In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties. On the Security page, under Server authentication, select the new server authentication mode (Windows and SQL auth), and then click OK. In the SQL Server Management Studio dialog box, click OK to acknowledge the requirement to […]
Categories: How-To's, Technology Tags: AWS, Enable, howto, login, sa, SQL, SQL Server, tips, windows
|
No comments
Author:
erics, August 23rd, 2010
Connect the two servers using a serial null modem cable. This example assumes the first serial port (i.e. uart0 or COM1:). On host you want to login TO: Edit /etc/ttys to add the following: [code]ttyu0 "/usr/libexec/getty std.9600" vt100 on insecure[/code] Then run “kill -HUP 1” as root. On host you want to login FROM: Add […]
Categories: How-To's, Technology Tags: FreeBSD, login, null modem, serial port, tip hardwire
|
No comments