Categories
User Help

Unable to use publickey authentication on Win32 Open SSH server

I have been using pubkey auth for SSH on Linux for years, and now I am trying to get it working on the Win32 port on a Windows 2016 server. So far unsuccessfully. I have read the help file for sshd_config, which says to put the credentials in <user>/.ssh/authorized_keys, just like in a normal Linux […]

Categories
User Help

Unable to use publickey authentication on Win32 Open SSH server

I have been using pubkey auth for SSH on Linux for years, and now I am trying to get i working on the Win32 port. So far unsuccessfully. I have read the help file for sshd_config, which says to put the credentials in <user>/.ssh/authorized_keys, just like in a normal Linux setup. I have also verified […]

Categories
User Help

Can’t do ssh port forwarding via systemd

I can run port forwarding command in terminal, but command doesn’t work when running via systemd. Command(perfectly works when running manually): /usr/bin/ssh -vvv -i /home/alex/.ssh/id_ed25519_npp -NT -R 1194:localhost:1194 alex@ya Here is systemd service unit: [Unit] Description=SSH tunnel After=network.target [Service] Type=simple Restart=always RestartSec=15 User=alex ExecStart=/usr/bin/ssh -vvv -i /home/alex/.ssh/id_ed25519_npp -NT -R 1194:localhost:1194 alex@ya [Install] WantedBy=multi-user.target Here is […]

Categories
User Help

Why does ssh clone from gitlab repo need password from WSL but not Linux-native PC?

From a Linux-native desktop, I am able to clone a project from our gitlab repo like this: git clone git@git.company.com:namespace/project.git No problem with the above: specifically, I’m not asked for the git@git.company.com password. I’ve needed to switch to Windows 10 Subsystem for Linux (WSL); when I try the same project cloning, I am prompted for […]

Categories
Mastering Development User Help

ssh Permission denied()

I am trying to ssh user@ip-address and I get Permission denied () error. Earlier I had Permission denied (publickey,password) and changed the ssh_config to PasswordAuthetification=no and in sshd_config PubkeyAuthentication=no, but permission denied is still there. sshd_config: StrictModes no PubkeyAuthentication no AllowTcpForwarding yes GatewayPorts yes X11Forwarding yes PrintMotd no TCPKeepAlive yes AllowUsers user # Allow client […]

Categories
Mastering Development System & Network

SSHFS – Can mount from command line but not through fstab

I have a FreeNas 11.2 server on which I have a user named “unifi-video” for which I have set a home folder and given a public key. I also have another machine that acts as a Unifi Video NVR (Network Video Recorder), let’s call it the “NVR”. I want the NVR to write onto the […]

Categories
Mastering Development System & Network

Permission denied (publickey) – Troubleshooting sshd pulling public keys from LDAP Server

1. Problem Summary: Hi, recently, in our infrastructure production environment, new users are unable to ssh into a debian jump server. The jumpserver’ SSH daemon retrieves the SSH public keys from the LDAP Server. We verified sshd local configuration, sshd logs, LDAP public keys presence and we are unable to fully understand what is preventing […]

Categories
Development System & Network

Unable to connect to AWS EC2 instance from Ubuntu 16.04 but can from Ubuntu 18.04

I created a general purpurse AWS EC2 instance using Ubuntu 18.04 Server AMI using AWS generated keypair for ssh access. This is the openssh configuration used in both cases: IdentitiesOnly yes TCPKeepAlive yes Host sephora-hermes-dev User ubuntu HostName ec2-something.amazonaws.com IdentityFile /opt/data/sephora-hermes-dev.pem ServerAliveInterval 4 ConnectTimeout 0 When I try to connect from my computer running Ubuntu […]

Categories
Development System & Network

Use ssh agent forward and libpam-ssh to connect to a specific user on server without password

I am trying to achieve to setup. I can connect to my server to user A using RSA key with ssh. But i can’t figure out how to forward agent to use with libpam-ssh. The goal is to make passwordless sudo commands. I’m on Debian (Buster) btw. ssh su A ——> B:user X ——> B:userY […]

Categories
Development System & Network

Connecting to SSH fails at random points with a timeout

I have a weird issue when connecting to, and using SSH to multiple servers. At random points the connecting phase, or after being connected for a while, the connection times out. The issue appears both on my Mac and on my iPhone (using the Termius app). It happens both when using a ssh key or […]