• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Misc

Key-Based SSH Prompting Password

February 21, 2023

Key-based SSH login is prompting a password despite it’s already setup to use keys. As turns out, the home directory was changed to 777. To fix, I changed home folder permissions and restarted SSH. It probably does not need a restart, but it doesn’t hurt.

chown -R username:username /home/username
find /home/username -type d -exec chmod 755 {} \;
find /home/username -type f -exec chmod 644 {} \;

chown -R username:username /home/username find /home/username -type d -exec chmod 755 {} \; find /home/username -type f -exec chmod 644 {} \;

sudo systemctl restart ssh

sudo systemctl restart ssh

Filed Under: Misc

Windows Curl Command

January 11, 2023

If you have to download a file from the Internet on a Windows server, can certainly use the browser. But if the browser is rendering the file instead of downloading them, you may have to use the curl command which is already pre-installed on most Windows servers. Just open the command line. Here’s the the curl command to download a file.

curl.exe --output index.txt --url https://website.domain/index.txt

curl.exe --output index.txt --url https://website.domain/index.txt

Filed Under: Misc Tagged With: curl, download, server, windows

Hide All Windows Except Current

September 10, 2022

Less clutter is good. There are times when there’s too many windows in our desktop. Having less clutter leads to better focus. Here’s how to hide all Windows on a Mac OS except for the current or active one.

Command + Option + h

Command + Option + h

I wished there was a command to bring them all back, but I have not found one yet.

Filed Under: Misc

Windows Check If Port is Listening

March 3, 2022

Here’s how to check if port is listening on a Windows Server.

Log in to the destination server.

netstat -ano | find "443" | find "LISTEN"
tasklist /fi "PID eq "443"

netstat -ano | find "443" | find "LISTEN" tasklist /fi "PID eq "443"

Filed Under: Misc Tagged With: check, listening, netstat, port, tasklist, windows

Github SSH Keys Setup

November 11, 2021

Here’s how to setup your SSH keys to work with Github.

Generate a key using ed25519 public-key signature system.

ssh-keygen -t ed25519

ssh-keygen -t ed25519

It creates a id_ed25519.pub file.

Go to Github.com and open up Settings > SSH & GPG keys.

Click New SSH key. Give a title and paste your pub key. Authorize.

Filed Under: Misc

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 10
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023