ssh

SSH permission denied via Windows PowerShell

SSH permission denied via Windows PowerShell I want to log into a Ubuntu server from my Windows machine. When I use PowerShell, permission is denied. PS C:Userssebastian> ssh seb@135.181.180.30 seb@135.181.180.30’s password: Permission denied, please try again. seb@135.181.180.30’s password: Permission denied, please try again. seb@135.181.180.30’s password: seb@135.181.180.30: Permission denied (publickey,password). PS C:Userssebastian> When I use the …

Total answers: 1

What is the `ssh -X` equivalent for Wayland?

What is the `ssh -X` equivalent for Wayland? https://unix.stackexchange.com/a/12772/386242 explains how to forward GUI applications via an X11-compliant display server (like XOrg) but I see no equivalent for accessing remote systems using solely Wayland compositors on both ends. Does it exist, or must a combination of X11 and/or XWayland and Wayland be utilized? Asked By: …

Total answers: 1

SSH_AUTH_SOCK security

SSH_AUTH_SOCK security I noticed that for SSH_AUTH_SOCK value, its folder is inaccessible by anyone else, yet the actual file itself can be read by anyone. What’s the reason behind such design? If I put a world-readable symlink in /tmp pointing to my private SSH_AUTH_SOCK file, what kind of security risk it would impose? Asked By: …

Total answers: 1

How to know what details Ubuntu is using for SSH host?

How to know what details Ubuntu is using for SSH host? On Ubuntu 23.10, when I open a terminal and ssh in to a host I have like this: ssh hostname.here.com It logs me in straight away (even when I’ve first booted up my machine, not just after I’ve logged in for the frist time …

Total answers: 2

Setting PS1 with site-wide configuration

Setting PS1 with site-wide configuration I’ve had problems with people logging into some servers via ssh and forgetting that a specific terminal is no longer local. Today someone tried to shutdown their laptop with sudo shutdown -h now, and accidentally took down a server. I’d like to change the colour of bash’s PS1 on these …

Total answers: 3

Ubuntu Static Public IP not working (22.04)

Ubuntu Static Public IP not working (22.04) We are trying to install a Machine with Ubuntu Server 22.04 in a Data Centre. The DC Host told us these public IP Addresses: IPv4 Net: XXX.XXX.XXX.160/29 Gateway: XXX.XXX.XXX.161 (The X’s are the same for IPv4 and Gateway) So, we are not really Networking experts but following some …

Total answers: 1

Issue with using SSH with jump host

Issue with using SSH with jump host From outside my network I can access my outside-facing server using a public-key with: ssh me@entry.com From that shell, I can then access another server on the network (typing in the password) with: ssh me@192.168.0.4 -p 12345 However, if I try to do this in one line, I …

Total answers: 1

Connection Raspberry Pi on Ubuntu Core with SSH

Connection Raspberry Pi on Ubuntu Core with SSH I have an raspberry pi 4b. I burned an image for ubuntucore like this "ubuntu-core-22-arm64+raspi.img.xz". enter image description here So i created an Ubuntu one account. I downloaded PuttyGen and generated a ssh-key. I imported the SSH-key I created into the Ubuntu One account. Then I started …

Total answers: 1

How to remove some ssh keys to be used when connecting to server

How to remove some ssh keys to be used when connecting to server ssh -vv -D 1618 -C -N someserver debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/ubuntu/.ssh/id_rsa RSA SHA256:xxx agent debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey debug1: …

Total answers: 1

How to config SSH authentication with all 3 components: publickey, password and OTP

How to config SSH authentication with all 3 components: publickey, password and OTP Update 1: I’m able to apply all publickey + password + OTP with this basic config in /etc/pam.d/common-auth. auth [success=ok] pam_unix.so auth [success=1] pam_google_authenticator.so nullok echo_verification_code [authtok_prompt=Enter your OTP:] auth requisite pam_deny.so auth required pam_permit.so I will try to apply pam_faillock.so to …

Total answers: 1

SSH: Bad configuration option

SSH: Bad configuration option I have a problem setting up the SSH service: SSH: Bad configuration option Asked By: Mark Wudman || Source I found a solution at: https://vsys.host/how-to/how-to-use-the-ssh-config-file HOST AND PATTERN MATCHING Sophisticated host and pattern matching in SSH config files allows for efficient management of connections to multiple servers. Using patterns and wildcards, …

Total answers: 1

How to submit the folder contents by Rsync with SSL keys protected by the passphrase?

How to submit the folder contents by Rsync with SSL keys protected by the passphrase? After has been recommended to stop to use Git for deploying to VPS, I have returned to Rsync method. Unfortunatly Rsync is very unfrendly, emits the unclear errors and sometime the error message does not matching with what actually wrong. …

Total answers: 1

Multi computer cron

Multi computer cron I have many computers and I ssh between them. I have a single cron file, which I manually type after into each computer. And when I change this cron file, I have to manually ssh into each computer to update its cron accordingly. Is there any way to have each computers cron, …

Total answers: 1

git@github.com: Permission denied (publickey)

git@github.com: Permission denied (publickey) I am currently setting up my continuous deployment (CD) pipeline and first got it running on a VM (VM-1) on my server. Everything worked fine. Now I want to use it on another VM (VM-2) on the same server. I have manually copied the SSH public and private keys from the …

Total answers: 1

The proper way to backup

The proper way to backup I want do regular, automated backups to a raspberry pi in my homenetwork. It is sufficient to do backups, when at home. Every singe guide I read on ‘how to do automated backups’ tells me to put a passwordless ssh-key on my pi. I don’t want to do this, because …

Total answers: 3

Does nftables allow port 22 or other ports by default?

Does nftables allow port 22 or other ports by default? I installed nftables on a new Debian 12 (on AWS EC2). I am connected to the instance (the external EC2 IP) over port 22/tcp. I mention EC2 because maybe they do weird tricks. I then installed nftables with: sudo apt install nftables sudo systemctl enable …

Total answers: 2