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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

nohup process pid not visible in new shell but still in old shell

I open and connect an ssh terminal window shell to my server and run this: nohup sleep 50000 & When I then run ps I see this: PID TTY TIME CMD 1 ? 00:00:00 bash 56 ? ...
  • 101
0 votes
0 answers
21 views

Good security practice for remote to local backup using rsync

I would like to perform a manual backup of a remote VPS (Debian 12) to my laptop using rsync. I want to backup the single files and directories to easily inspect them locally, and not e.g. a VM ...
  • 1
2 votes
3 answers
377 views

Cannot figure out how to turn off StrictHostKeyChecking

I've got this ssh command that I run on different databases: ssh -i $8 -l $9 $1 "set -o pipefail set -o StrictHostKeyChecking=no; mysqldump --single-transaction --skip-lock-tables -u $2 -p$3 -P $...
  • 695
0 votes
1 answer
21 views

config file for ssh ProxyCommand after a ProxyJump

There's something really broken about my mental model of how ssh's nesting of ProxyCommand works. I have the following ssh command that works the way I want it to (ssh to jump.mydomain.com and then ...
1 vote
3 answers
61 views

Copy ssh keys to a new computer

I'm changing between computers. On an old one I have SSH keys (to remote servers, AWS, etc...) Is it considered to be a good practice just to copy the .ssh folder to a new computer ? If not, what is a ...
  • 113
0 votes
1 answer
23 views

Can't detach from tmux session while process is running

I am logging in to a remote linux machine via ssh, and then I start a batch process in tmux. However, I can't detach from the current tmux session using Ctrl + b + d. So, for starting another tmux ...
-5 votes
0 answers
47 views

SSH: Permission Denied (publickey,password) [closed]

new to cybersecurity bear w/me. Just a learning situation is all, to progress onwards I took it far as I could it asked me to prepare & encode the PAYLOAD etc. I did those 4 steps. Why after ...
0 votes
0 answers
27 views

How to make tmux detach when exiting ssh by closing terminal?

Trying to start using tmux instead of screen in my raspberry pi, due to screen's weird problems with colors. But not really understanding how to make tmux detach automatically. I used to use ssh me@my-...
-2 votes
1 answer
122 views

SSH: Permission Denied (publickey,password)

new to cybersecurity bear w/me. Just a learning situation is all, to progress onwards I took it far as I could it asked me to prepare & encode the PAYLOAD etc. I did those 4 steps. Why after ...
0 votes
1 answer
28 views

How to SSH to a host and attach an LXC container in one command, properly?

I'd like to connect to a LXC container through Proxmox via SSH without having SSH access to the container itself, so I can get the desired outcome by connecting to the Proxmox host first and then ...
1 vote
0 answers
18 views

How do I get the tmux window name back after ssh clobbered it?

This is a common problem, and while not critical, it is quite annoying. While using tmux on a remote server, each window is renamed according to the program being run. So if I have 3 windows running ...
  • 3,911
0 votes
1 answer
47 views

When exchanging keys between source and target systems, does local account have to exist on a remote system as well?

Full rephrase: Local system server_local has an account username_local. I am logging under this account, generate a public key and send it to the remote system server_remote, where it is added to the ...
0 votes
0 answers
32 views

Piping not working as expected with SCP

I am trying to pass the password to scp command so that it doeskin prompt for it. I am doing it like this. echo "pwd" | scp -r $files_path $user@$server:$target On one server it is working ...
0 votes
0 answers
17 views

Mail remote commands output on failure

I would like to run a command on a remote server and send an email alert (locally) in case of failure. As surprising it is this actually works: ssh -p1222 root@10.4.4.4 'cd /root/chk; md5sum -c /root/...
  • 1
0 votes
1 answer
29 views

Server presenting RSA key instead of ECDSA when someone tries to ssh

On Server B, I have ECDSA, RSA and ED25519 private and public keys available in /etc/ssh/. When server A tried to ssh to Server B it received the RSA key fingerprint to authenticate and fails because ...
  • 143
1 vote
1 answer
49 views

Unable to connect to remote server after: sudo chown -R $USER:$USER /var/www

I tried gaining write permissions to change an HTML file on a remote server that runs Fedora using: sudo chown -R $USER:$USER /var/www After entering this line in the terminal connected to the ...
-2 votes
0 answers
23 views

Able to login via SFTP but can't login to SSH

I'm using Nocix, unmanaged servers, which is cheap sooo I guess it's my own fault, however... I am able to login to root SFTP using Filezilla, I am unable to connect via SSH on PuTTY, I have no idea ...
0 votes
0 answers
48 views

Grepped /sys/ directory, now device won't respond

I recursively grepped the /sys/ directory for the string "hello" over SSH: sudo grep -r hello /sys/ I'm using a Raspberry Pi 4B 8gig. After performing this command, the rpi won't respond to ...
0 votes
0 answers
39 views

sshpass No such file or directory

need add string to file on remote ssh server without prompting sudo password myuser=testuser $ sshpass -p "$mypass" ssh -t -o StrictHostKeycheking=no $myuser@$myhost "echo $mypass | ...
0 votes
1 answer
38 views

sudo through ssh on cron

I have this command which runs properly when executed on terminal: ssh someuser@someserver -t "sudo systemctl start someservice" No password asked for ssh, there is a public key to connect, ...
  • 2,396
0 votes
0 answers
13 views

Arguments lost when running ssh host sh -c [duplicate]

Running ssh u@h command arguments works as expected: $ ssh verence@dock df /run Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 6551280 1888 6549392 1% /run If I add a ...
  • 3,203
1 vote
0 answers
49 views

ssh port forwarding, who has access to localhost?

I've done an ssh remote port forwarding: me@host1.a.com% ssh -R 127.0.0.1:11999:host2.a.com:99 me@host3.b.com My understanding is that this creates a TCP socket on host3.b.com's localhost port 11999. ...
0 votes
1 answer
28 views

In accessing console via serial connection, is there some "serial daemon" listening in the server?

When we use SSH, we should have an SSH client on the client computer and there should be an SSH server running on the remote computer. In Linux for example, the SSH daemon, sshd, should be running in ...
0 votes
1 answer
20 views

Can one configure per-client non-closing SSH session on server side?

On SSH client side one can configure per-server keepalives so that connection to a single server is kept up: Host example Hostname example.com ServerAliveInterval 240 On server side one can ...
  • 1,928
0 votes
1 answer
30 views

How to get cron job to use ssh-agent for current user

I'm trying to persist an ssh tunnel connection with Remote port forwarding to access a machine behind a home router, using a cron job, as shown in this blog: https://juliansimioni.com/blog/howto-...
0 votes
0 answers
38 views

SSH server allows login but refuses connection when trying to copy a file

I am able to log into my ssh server both using a password and also with key. But when I try to copy a local file to the ssh server (rsync or scp) it refuses the connection which is very strange. So ...
0 votes
0 answers
13 views

Is there a way to auto seutp ssh dynamic port forwarding base on availability of servers?

if there are two server ( or list of server ) which are able to be connected via SSH, but they are not stable in terms of high latency or not even up or slow to to connected to . I have to mannualy ...
-1 votes
4 answers
37 views

How to start ssh-agent without eval

What I already know To start ssh-agent you need to use the command eval $(ssh-agent) You have to do this because of security reasons. A child process can't change environment variables of the process ...
1 vote
1 answer
60 views

Cannot scp folders from user computer to server

For some reason I can no longer scp folders from my desktop Mac to our Linux server. Here's the error: (base) my_computer:~ username$ scp -r /source_directory/filename user@server:/home/user/...
0 votes
2 answers
41 views

Open Solaris11 in Vagrant: Unable to negotiate with 127.0.0.1 port 2222: no matching host key type found. Their offer: ssh-rsa,ssh-dss

I use this Vagrantfile: Vagrant.configure("2") do |config| config.vm.box = "jonatasbaldin/solaris11" config.vm.box_version = "1.0.0" end The vagrant up is ...
2 votes
0 answers
68 views

Really strange problem with SSH disconnecting immediately, lots of investigation done

I have 3 raspberry pis with identical SD cards, for some reason one of them suddenly disconnects immediately after SSH authentication. The problem doesn't occur immediately, reboot will fix it, and ...
  • 378
0 votes
1 answer
27 views

How to send expression with variables over ssh?

I can run the followind loop locally for i in A B C; do mycommand $i; done Now I am trying to send it over ssh The following version ssh myhost for i in A B C; do mycommand $i; done The following ...
  • 2,877
0 votes
1 answer
21 views

Why Ansible failed to ping instance which I can connect?

I can connect my AWS EC2 instance ssh -i "pizdform.pem" ec2-user@ec2-52-206-23-6.compute-1.amazonaws.com Last login: Tue Feb 21 12:36:50 2023 from ... I tried Ansible ping cat test-project/...
1 vote
1 answer
37 views

ssh and git setup

I am attempting to setup a private git server on my local network and I cannot for the life of me figure out what I am doing wrong. I can't seem to get ssh authentication via private key working for ...
-1 votes
0 answers
23 views

Unison remote ssh connection

I am trying to sync folders with Unison app. The remote server has enable for ssh the port 9999, but I am not able to connect Unison to the remote device. I have tested a lot of different connections ...
0 votes
1 answer
27 views

How to generate ssh key with AES-GCM?

I used that form to create my ssh key : ssh-keygen -t ed25519 -C "your_email@example.com" and I got: Encryption: aes256-cbc, is it possible to use aes256-gcm@openssh.com instead? thanks
  • 97
0 votes
0 answers
22 views

Screen is definitely running but I cannot find the screen session

I would just like to preface to say I'm an absolute beginner so maybe the solution is easy. I have a python script which writes some data to a csv file, and I want to run it on a remote server. So, ...
0 votes
0 answers
56 views

ssh does not use ssh-agent on FreeBSD

I recently set up a new FreeBSD system and am having a lot of trouble getting ssh to use ssh-agent. I have verified with ssh-add -l that my key is added, and the SSH_AGENT_PID and SSH_AUTH_SOCK env ...
0 votes
0 answers
30 views

How to redirect the output of a command running inside a loop on a remote machine (via ssh) to my local machine without breaking the loop?

I am running a piped ssh command on my Ubuntu 20.04 PC, where I am sshing into a remote machine, listening to a specific port and processing each incoming message as shown below: ssh ${...
0 votes
1 answer
34 views

SSH login still ask password even though public key is added in remote machine's ~/.ssh/authorized_keys file

I have a Raspberry pi 4 with a Linux OS & I am using a Macbook. The two machines are in the same LAN. Raspberry pi IP address is 192.168.10.11. I can ping the Raspberry Pi from my MacBook terminal ...
1 vote
1 answer
76 views

Suggestion for sudo over ssh

I need two suggestions for making my script working from local server as well as ssh execution 1. How to update the sudoers In server i have a path /var/log/data/status/ all files of parent and ...
  • 25
1 vote
1 answer
43 views

How to use a GPG key for SSH on macOS

Basically, my goal is to use a single key for everything. I have a GPG key that I imported onto my MacBook, and would like to use that key for SSH authentication. However, despite my several attempts, ...
-1 votes
1 answer
57 views

How can I forward port 8080 from my linux machine to be visible on port 2007 of my internal network using ssh?

I have a linux server hosting an applcation on port 8080 Inside putty, i have create a port forward from port 2007 to 8080 by specifying the public IP of my server, where's covered in red below How ...
0 votes
0 answers
17 views

Trouble with x2x

I've tried out x2x as per this old link but have hit a snag. Its purpose is to allow use of the keyboard and mouse of one linux computer on the desktop of another linux computer. I tried the first ...
  • 101
0 votes
0 answers
42 views

UFW apparently causing SSH to timeout despite specific rule

I'm new to SSH and ufw and would like to understand why one type of rule works between two Linux Mint computers on the same home LAN but another does not seem to work. I just wanted to allow one ...
  • 101
0 votes
0 answers
73 views

SSH fingerprints not matching

host_a is macOS host_b is Ubuntu host_b is in known_hosts on host_a host_a is not in known_hosts on host_b I've changed the fingerprints and trimmed some output for brevity but otherwise this is ...
  • 101
0 votes
0 answers
18 views

How to redirect domain in ssh to install repo from a different mirror?

I want to try vestacp on AlmaLinux 9. VestaCP supports CentOS 8 which means it should work fine on AlmaLinux 8 and 9. It's based on the same codebase. Either way if it had problems it's fine, I'm ...
0 votes
0 answers
82 views

/var/log/auth.log is flooded with error: connect_to 127.0.0.1 port 7300 error

I am using SSH Direct with napsternetv on my phone (iPhone and android) which sets Udpgw port 7300. This lead to flooding server /var/log/auth.log with the following error message: [date] [time] root ...
  • 1
-2 votes
1 answer
86 views

How can I disable and remove XFCE from Debian from SSH?

I am remotely accessing a server I configured on Debian 11. I want to disable and remove XFCE without losing SSH access (since I don't have physical access to the server right now) and just run it as ...
0 votes
0 answers
33 views

How to solve the error "The name :1.83 was not provided by any .service files" (PCManFM-Qt Version at Debian 11 bullseye)

When I try to connect to a remote server using PCManFM-Qt Version: 0.16.0: "Go" "Connet to server" "Type SSH" I get the error message: The name: 1.83 was not provided by ...

1
2 3 4 5
155