Questions tagged [ssh]
SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.
8,033
questions
0
votes
0
answers
42
views
Cannot log in to my server
Out of a sudden I cannot log in via ssh to my Debian server with root user
I am getting this:
Permission denied, please try again.
After a several attempts this pops up:
[email protected]: Permission ...
0
votes
2
answers
26
views
Ssh Permission denied on EC2 Linux server (publickey)
Please I created 2 Ubuntu Linux EC2 instances(master and slave) when I tried to ssh from the master server to the slave I get the error Permission denied (publickey).
Server Details
ubuntu@ip-172-31-...
0
votes
0
answers
23
views
Proper way to set up rsnapshot over ssh on multiple machines
There is a post on here that I am using for the answer to part of my question.
Proper way to set up rsnapshot over ssh
I'm basically going with the answer to this question. However, this post is ...
0
votes
0
answers
34
views
Getting error when i load SSH key "Load key "/root/.ssh/id_ed25519": error in libcrypto"
Long story short I have an SSH key pair that I am copying to a new machine from a shared drive whenever the machine starts but when I load in the keys I keep getting an error. There is no difference ...
0
votes
0
answers
41
views
How to bind a forwarded local port to 0.0.0.0 instead of 127.0.0.1? "Operation not permitted" when using GatewayPorts=yes
A (remote) SSH server remote runs a service on (remote) 127.0.0.1 port 20001. I want to make this service available locally via SSH port forwarding:
ssh -vvv -4 -L 20001:127.0.0.1:20001 remote
Port ...
1
vote
3
answers
104
views
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 ...
0
votes
1
answer
29
views
Unable to SSH Login using kerberos
Setup
I have some basic KDC setup at kerberos.domain.intranet (This is in my own Intranet DNS)
I have another machine at xux.domain.intranet (This being the target machine to which SSH)
I setup the ...
2
votes
2
answers
46
views
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 ...
0
votes
1
answer
31
views
What configuration is blocking local ssh connections to my server?
So I recently bought a Raspberry Pi to work on a small passion project with the RetroPie Debian-based image.
I am now at the stage where I want to completely shield the server only allowing specific ...
0
votes
1
answer
22
views
SSH option SecurityKeyProvider works from command line but not config file linux WSL--other options fine
I'm trying to ssh into my work server but this bug has been bugging me for a few months now. Every other option in my config file (housed at ~/.ssh/config) works fine, but for some reason ...
0
votes
0
answers
24
views
ssh jump host connection with target machine authentication via a private key
I need to connect to a target machine via ssh jump host. Authentication to target machine is done via a private key on jump host. A manual way will be made of 2 steps:
ssh [email protected]
ssh -i priv....
0
votes
0
answers
37
views
ssh client ignores identity settings on config file
Here my ~/.ssh/config file:
# Identity for github work account
Host github-work
HostName github.com
User git
IdentityFile ~/.ssh/github-work
IdentitiesOnly yes
# Identity for gitlab ...
0
votes
1
answer
37
views
ssh prompts for password when providing non-default key
I have a question about ssh public key authentication.
I have generated on a RHEL 9 machine a key pair - protected by a password- as follows:
ssh-keygen -f .ssh/key2
Then, I have copied the pub key ...
1
vote
0
answers
28
views
SSH Display custom message at login if correct password but no public key
We're moving a server (running Ubuntu Server 23.10) from "password or public-key" auth to "public-key only". I'm looking for a way to make ssh auth behave like this:
If public key ...
-4
votes
1
answer
49
views
Why is this iptables blocking the ssh to my virtual machine?
I have a virtual machine with kali running a ssh server, i want to block all traffic by ssh to this machine except from my own pc and to do it i have this iptables rules.
┌──(root㉿kali)-[/home/kali]
└─...
0
votes
0
answers
16
views
Launching via Plasma shortcut removes ssh-agent's environment variables
Running Plasma 5.27.10 on Debian testing/trixie. An ssh-agent is launched via user service /usr/lib/systemd/user/ssh-agent.service and its socket is exposed in my session's environment variables. All ...
0
votes
0
answers
22
views
ssh to a machine via a cluster of Jumphost - host key verification fails
I have FQDN : jumphost.mycompany.com
which is a load balancer that distributes the load between 3 different servers
jumphost1.mycompany.com
jumphost2.mycompany.com
jumphost3.mycompany.com
I want to ...
0
votes
0
answers
23
views
How to set ACL permissions for SSH_AUTH_SOCK in a RemoteCommand?
I'm trying to forward my SSH agent and then grant permissions to the SSH_AUTH socket. The permissions are for another user on the remote host. My ssh config:
Host myhost
Hostname 1.1.1.1
...
0
votes
0
answers
16
views
ssh to TV and control dvd iso play
I would like SSH to a computer with a TV as its monitor and remotely control
dvd.iso playing on the TV screen from the command line.
Can I?
0
votes
0
answers
18
views
Connecting to a WIFI appliance from a script? [duplicate]
Sorry about the vague subject - this isn't about how to connect to WIFI, but about connecting to the access point from a command line, or rather in a script. I can do this manually with ssh, but there ...
0
votes
0
answers
45
views
SSH connection failing on bitbucket pipeline, but working on local computer
From my local computer, I can ssh into my server without a password by doing:
ssh [email protected]
I then check /var/log/auth.log on the server to see what ssh key was used. I get something like ...
0
votes
2
answers
105
views
Why is ssh-agent.service running, but when I use ssh-add I get an error connecting to the agent?
The ssh-agent service is enabled for the user and is running without errors. (status is active).
But when I try to use ssh, I get the error Could not open a connection to your authentication agent.. I ...
0
votes
1
answer
63
views
Unable to access proftpd server via sftp: port 22
I'm trying to replace a proftp server because the old one was encrypted during installation and the passkey is lost.
Old server works fine on ftp:21 and sftp:22/322
old server is on ubuntu 16.04.7 lts
...
1
vote
0
answers
27
views
SSH forwarding audio in Debian 12 KDE fails
(Several weeks ago, I posted this request-for-help on superuser.com, but didn't get any replies. Hence, I'm seeking help here.)
SYSTEMS:
X86_64 Debian 12 bookworm KDE AND Debian 11 bullseye KDE
...
0
votes
1
answer
35
views
What's the simplest way to convert between SSHFP hex and ssh-keygen SHA256 Base64?
I am trying to verify the SSH fingerprint of a GitLab server. Its published fingerprints are wrong, possibly from load balancing. VerifyHostKeyDNS=yes doesn't error but I don't trust not seeing ...
4
votes
1
answer
135
views
After changing the username, no SFTP login is possible anymore
I have SFTP server with many users connecting with different usernames.
One user requested the name change.
Since I thought that is pretty straightforward procedure, I did typical
usermod --login ...
0
votes
1
answer
38
views
Windows X2Go using ssh config file
To connect to our servers we use X2Go. The setup is a little bit more sophisticated due to the use of a proxy. The proxy is setup properly and works when I connect via ssh in the powershell. I also ...
0
votes
1
answer
51
views
How to configure separate ports and keys for restic usage?
I want to use restic for remote backups, but seeing as SFTP and SSH will both require access to the system, is there some way to configure the SSH access to the server in such a way that the ...
0
votes
0
answers
32
views
How to use a remote ssh output as an input into a scp
I have a list of systems and I want to copy a log file out of many logs files, to my local machine which has a specific date of logs.
for i in `cat serverlist`; do scp $i:$(grep -lR "2024-01-01 ...
1
vote
1
answer
45
views
How to specify a number of copies in print lpr command using ssh
When I want to print a document using ssh from my local machine I use
cat path/to/document.pdf | ssh [email protected] lpr
This will print my document.pdf that is located in my local machine using a ...
1
vote
1
answer
64
views
How to display text for non-interactive login shell
What I need:
I am trying to change /etc/bashrc in such a way that shell could display specific text when the following ssh command is entered
ssh user@ip "whoami"
But I don't understand ...
5
votes
1
answer
3k
views
If I don't log in the desktop environments, does the desktop enviroment still cost RAM?
For linux (Ubuntu, Debian, etc), different desktop environments cost different amounts of resources (RAM). Gnome and KDE tend to cost more RAM than others like XFCE / LXDE / LXQT:
https://unihost.com/...
0
votes
1
answer
79
views
How can root get access to SSH_TTY
I think that SSH_TTY is an environment variable set by ssh that holds the device node of the current virtual terminal; e.g. /dev/pts/0, /dev/pts/1 , etc.
I know that when I'm logged in to an SSH ...
-5
votes
1
answer
41
views
How to access git repository whilst using brew command?
I am trying to install a package using brew but it is asking for Github username and password and failing to authenticate the connection even though I have added the ssh key to the Github. Can you ...
0
votes
1
answer
60
views
SSHing to a CentOS server switches to a different user
I've started managing a CentOS 7 server for a new client that is managed via Plesk. I'm not familiar with either Centos or Plesk.
If I SSH to the server like: ssh [email protected], immediately ...
0
votes
0
answers
40
views
Is it possible to integrate Linux servers SSH with ADFS for authentication?
I'm having trouble managing users on 30 servers I have on AWS. From my research, I saw that it's possible to do this using FreeIPA and SSSD, but the communication is direct between the Linux servers ...
0
votes
0
answers
47
views
SSH from OpenSSH 9 to OpenSSH 5 protocol 2 fails: “illegal argument”
I'm trying to connect from a VMware ESXi 8 machine
to a VMware ESXi 5 machine to transfer all the virtual machines.
The problem is that ssh doesn't connect.
The old machine has OpenSSH 5 and the new ...
1
vote
0
answers
31
views
SSH client with instant input echo
When using the terminal on code-server (VSCode probably does it as well), input is instantly shown on screen (grayed out, until the server actually responds):
When I connect to the remote machine ...
-1
votes
1
answer
44
views
BASH SCRIPT: Echo to file is transfered to remote host [closed]
I am writing a bash script in order to perform
some automatic backups to a remote storage server.
The batch script will be run with cron jobs however I'm testing it before.
See script below:
#!/bin/...
-2
votes
2
answers
103
views
locked out of my server Permission denied (publickey)
I was connected to my server. i edited the /root/.ssh/authorized_keys and added ----BEGIN RSA PRIVATE KEY-----at the start of the public key and -----END RSA PRIVATE KEY-----at the end of the public ...
0
votes
0
answers
93
views
Unable to SSH to a server from Jenkins using ED25519
RSA keys going to be decommissioned due to weak security and hence tried o generate a key using ED25519 type using the command
ssh-keygen -t ed25519 -C “testkey”
and generated the public private key. ...
0
votes
1
answer
33
views
Unable to SSH into remote machine but able to ping - VPNC
I'm writing and posting the solution that I found with a recent issue regarding VScode remote server, ssh and VPNC. Yep, I lost to much time on it, hope to save your time.
Issue
I had to change VPN ...
1
vote
1
answer
32
views
ssh tunnel and change IP
I create my tunnel in my laptop via:
ssh -p 22 -CfND 7777 mohsen@myserver
After input my password, connection is established.
And via socks5 in firefox I use 127.0.0.1:7777 and I can browse many ...
0
votes
0
answers
68
views
OpenSSH Requires Password AND Public Key
I've inherited an old CentOS-6 system with OpenSSH 5.3 installed. And OpenSSH is behaving oddly: Currently the daemon requires the use of a public key and a password in order to login. (It's been this ...
0
votes
1
answer
97
views
SSH login tries to execute commands that does not exist
I upgraded a server from Debian 9 to 10 and after a reboot at the next SSH login I get the following errors :
-bash: root:x:0:0:root:/root:/bin/bash: No such file or directory
-bash: daemon:x:1:1:...
0
votes
0
answers
49
views
SSH tunneling over cloudflare tunnel for linux server
I need to connect to my linux server over cloudflare tunnel to protect my server. I have some user and need it for this. can every one help my?
I tried this commands:
mkdir Argo && cd Argo
...
1
vote
1
answer
60
views
How to migrate my encrypted passwords to my new laptop
I'm using pass to store my password. Passwords are stored in ~/.password-store. This has been working for 10 years, but now I have a new laptop. I'm trying to migrate the passwords by copying what I ...
0
votes
0
answers
47
views
Download a file via SSh to local machine
I am using Linux Mint 21.2 and I have set up a remote server.
I can upload files to it via SSH by using
scp local/path/file.txt [email protected]:/destinationfolder.
I am told that I can do it ...
-2
votes
1
answer
153
views
Is there a way to enforce 2FA for all users on the SSH server on the Unix PAM Subsystem?
Is there a way to enforce two-factor authentication (2FA)
for all users on the SSH server on the Unix PAM Subsystem?
0
votes
1
answer
48
views
Adding an account via SSH not working with openssl
I am trying to add a user account to my remote server (running on Ubuntu 22.04) via SSH using below script:
#!/bin/bash
protect="y"
ssh -i ssh_key [email protected] <<END
sudo deluser ...