Skip to content

Instantly share code, notes, and snippets.

@Pbasnal
Pbasnal / host-ssh.log
Created March 22, 2021 11:34
SSH logs from the host machine
PS C:\Users\azlinux> ssh root@192.168.0.7 -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Connecting to 192.168.0.7 [192.168.0.7] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\azlinux/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\azlinux/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\azlinux/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\azlinux/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\azlinux/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\azlinux/.ssh/id_ecdsa-cert type -1
@Pbasnal
Pbasnal / packer.log
Created March 22, 2021 11:32
packer.log of RHEL vm which is facing the ssh error
2021/03/22 09:58:15 [INFO] Packer version: 1.7.0 [go1.15.8 windows amd64]
2021/03/22 09:58:15 [TRACE] discovering plugins in C:\ProgramData\chocolatey\lib\packer\tools
2021/03/22 09:58:15 [TRACE] discovering plugins in C:\Users\azlinux\AppData\Roaming\packer.d\plugins
2021/03/22 09:58:15 [TRACE] discovering plugins in .
2021/03/22 09:58:15 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/03/22 09:58:15 [INFO] PACKER_CONFIG env var set; attempting to open config file: C:\Users\azlinux\AppData\Roaming\packer.config
2021/03/22 09:58:15 [WARN] Config file doesn't exist: C:\Users\azlinux\AppData\Roaming\packer.config
2021/03/22 09:58:15 [INFO] Setting cache directory: C:\Users\azlinux\repos\Compute-AzLinux-RedHat-Image\packer_cache
cannot determine if process is in background: Process background check error: not implemented yet
2021/03/22 09:58:15 [TRACE] Starting internal plugin packer-builder-hyperv-iso
@Pbasnal
Pbasnal / omniauth_error
Created June 30, 2014 12:18
omniauth not getting properly set by initializer
Using '/auth/google_oauth2' is successfully redirecting me to google sign in page but I've already given name parameter for provider as "google".
And my app is only asking permission for email and basic profile information and no permission for drive and spreadsheets are asked.
Rails.application.config.middleware.use OmniAuth::Builder do
provider :google_oauth2, '367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com', '1yX7HzuzWi3yD1OqJ21ZgpSS'
{
name: "google",
scope: "profile,email,drive,https://spreadsheets.google.com/feeds",
prompt: "consent",
access_type: "offline",