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
0answers
10 views

Is it possible to carry local RSA keys to remote computer (live) and use securely?

Is it possible to store an SSH-id in some sort of session (like expect or ssh) that is running on the local machine, swing into a remote box, and execute a shell command in the remote box as if the ...
0
votes
0answers
27 views

How does rsync distinguish between destination being a local directory with ':' and '@' in the dirname, or a remote SSH?

Technically, we could create a local directory called user@example.com: (it's a valid UNIX path, isn't it?), so how does rsync internally know if: rsync test/ user@example.com:/test/ means: the ...
0
votes
0answers
8 views

git ls-remote ssh:// and credentials

git (2.29.2), is there a way to prevent the git ls-remote ssh://user@host:port/dir.git command from asking for the password? I can't use public keys, the repositories are on a NAS which only allows ...
0
votes
0answers
26 views

ssh localhost: Permission denied (publickey) Ubuntu on WSL2

Previously asked this question on askubuntu.com but I thought this is rather a general linux question so I'm asking here again: I'm having trouble "sshing" to localhost and getting a ...
-1
votes
1answer
35 views

I see it in nmap but cant SSH

Hope all is well! I am trying to connect to a remote linux machine. ( It is a Rpi with the IP address 192.168.168.199) I am unable to SSH into the Rpi. After I type the following and hit enter, ...
0
votes
0answers
20 views

How to know if a remote machine has a display attached to it?

I have remote access to a Linux machine. How would I know if the machine is headless or it has a display attached to it? If I ssh into it and run echo $DISPLAY I don't get any output. Does it mean ...
0
votes
2answers
26 views

“Permission denied (publickey,gssapi-keyex,gssapi-with-mic)” when attempting to SSH from server 1 to server 2

I'm trying to ssh from my backup server (CentOS 7) to my production server (CentOS 8), to pull a database backup. I can't work out what I'm doing wrong. I'm using root on both servers. I've taken ...
0
votes
0answers
16 views

SSH tunneling error: “channel 2: open failed: administratively prohibited: open failed” with FoxyProxy config

I am using ssh config and a proxy tool called FoxyProxy so that I can bring up the Spring Boot console in a browser when I ssh in. I am using this with a number of bastions, but for only ONE bastion ...
1
vote
0answers
21 views

SSH Publickey+TOTP and Password+TOTP simultaneously

I am trying to setup an SSH server where some users prefer to use an SSH key but others prefer LDAP provided passwords. I found out that I can set in sshd_config for publickey + PAM or PAM only ...
0
votes
1answer
21 views

Does rsync execute commands via SSH on remote, or only use SFTP protocol?

When using rsync -az /home/me/ root@192.168.0.2:/backup/home/me/ does rsync need to be installed also on remote? More precisely, does rsync run commands on remote via SSH (rsync specific commands, ...
1
vote
1answer
30 views

Special Characters in Username for SSH not passing to remote device

I've been trying to beat my head around this. Bing, Google, and Yahoo don't seem to get my question, hence here I am. I have a user D5P$3r that I need to pass from my Linux Server to my router. I've ...
1
vote
1answer
55 views

SSH client on Linux Mint 20 doesn't prompt for user presence confirmation via FIDO USB device

I recently received a Security Key by Yubico (supports FIDO/U2F) and I am testing SSH authentication using this key. Quoting the OpenSSH 8.2 release notes (Changes since OpenSSH 8.1 section): In ...
-1
votes
0answers
21 views

X11 forwarding with Shell in a Box [closed]

I am trying to get X11 forwarding to work on my Shell in a box ssh jail. I am running FreeBSD, and I have changed the correct files. ssh_config, and SSHD_config. It gives me this error when trying to ...
1
vote
1answer
20 views

Issue in changing directory while doing ssh

I have the following scenario, I have script that runs bash script on another remote machine The command to ssh is ssh knode@192.18.48.0 'bash -s' < test.sh test.sh #/bin/sh bash ./trigger.sh ...
1
vote
1answer
31 views

SSH remote forwarding results in 404 Not Found

On a remote server, remote1.myorg.io, I am unable to access a web resource, say, http://spaa.acm.org/2020/SPAA2020TutorialProgram.pdf. So, on the remote server, I'm using ssh to create a server on 127....
1
vote
0answers
24 views

“ssh-agent dwm” started from .xinitrc, but environment variables are not set

I got an .xinitrc file with the following line: # it will start my window manager ssh-agent dwm After that I got an ssh-agent process, but environment variables like $SSH_AGENT_PID and $SSH_AUTH_SOCK ...
0
votes
0answers
15 views

Systemd service without external display - Process raises an exception ansd exits

I am trying to run an app as a systemd service. An example service file is given as follows. [Unit] Description = Custom APP Wants = network.target After = syslog.target network-online.target ...
0
votes
1answer
31 views

ssh Tunnel (-w) “Tunnel device open failed.” on mac os

if i do macos - ssh server1 -A server1 - sudo -HE ssh root@server2 -w 0:0 all work fine tun device up success ifconfig -a #contain tun0: flags=4240<POINTOPOINT,NOARP,MULTICAST> mtu 1500 ...
0
votes
2answers
31 views

X connection refused when SSH'ing from MacOS

I have a bash terminal open on a Macbook and I'm running ssh -X <some_ip> where <some_ip> refers to an Ubuntu 20.04 VM. I login with no trouble. However, when attempting to execute a ...
0
votes
2answers
20 views

SSH config for minimal typing when connecting via bastion host

For connecting to a device via jump proxy (bastion host), I type the following: ssh -J bhost myuser@localhost -p $PORT myuser is the usernanme for my current logged in user on my local device as well ...
1
vote
2answers
71 views

ssh, is better to use -X or -Y?

Simple question: for security is more safe to use ssh -X or ssh -Y? As I know ssh -Y is X11Trusted, so no more controls are made, so is better to use -X for security reason. What did you think? I ...
0
votes
2answers
66 views

I removed my public key from my ~/.ssh directory, why can I still access host without password?

I generated a public/private key pair on my client machine. They are in ~/.ssh as id_rsa and id_rsa.pub. I added the public key to the host machine's authorized_keys file, and now I can successfully ...
2
votes
2answers
24 views

How do I add an additional SSH user with a non-standard home directory to Centos 7 AWS Machine?

I have a CentOS 7 instance on AWS, and I connect using a .pem file. When I create a new user and follow the standard steps, (create .ssh directory, chmod 700 it, create authorized_keys file, copy the ...
0
votes
1answer
16 views

pam_ssh_agent_auth: sudo asks for password with ssh user@host, but ssh user@host 'bash' not

I use gpg-agent to manage ssh-agent. On my PC: ssh-add -L prints my public keys which is used on the server. ForwardAgent is open. pam.d/sudo and sudoers are configured. After ssh user@host, echo $...
0
votes
1answer
19 views

SSHD connection ESTABLISHED in log but not showing up on last login

As the title suggest, i noticed that, by running/constantly watching/monitoring the output of: lsof -i -P -n that an ip different of my own local one, ESTABLISHED a connection on ssh. This is on a ...
2
votes
1answer
39 views

sshd disconnects after unknown syscall

I'm working on an embedded system (based on a Cortex-A8 CPU) running Linux kernel 4.19, OpenSSH_8.3p1, OpenSSL 1.1.1h, glibc 2.32, compiled with GCC 10.2 using buildroot. When a client tries to ...
0
votes
1answer
17 views

How to feed my webcam's input to a machine I SSHed into?

I am working on a Machine Learning model that works on video data. I made this model on an AWS EC2 instance with GPU that I SSHed into. And as part of testing it, I would like to test it with live ...
1
vote
0answers
33 views

How to update my ssh known hosts list?

I changed my /etc/hosts, added something like this: 10.188.x.x client-1 10.188.y.y client-2 I used that setting for a while (ssh client-1), then I changed the file a second time to this: 10.188.x....
3
votes
2answers
31 views

How to use a remote server as a proxy to download file?

There are some http file links I can not access, but I have a remote server which can access them. To download these files to my machine, I use the remote server as a "proxy". This is what I ...
2
votes
2answers
44 views

Configuring ssh access via jump box and pbrun

In an RHEL6 environment with Powerbroker and no direct access to hosts, I can hop to them via jump box/gateway: This explicit command works, without configuration, however it's verbose: dk@local $ ssh ...
0
votes
0answers
42 views

After certain number of logins, CentOS server hangs, closes all connections

So I normally like to maintain a lot of connections to the server, but after a server reboot, at about the eighth concurrent session, the login fails (times out), and every session to the server ...
1
vote
0answers
46 views

Broken SSH sudo - parse error in /etc/sudoers

Today I run into ironic and awful situation - I have broken sudo command. I don't have physical connection to the machine. The only way I can access server is via SSH. So firstly I connected as "...
0
votes
2answers
35 views

Limit SSH to a range of IP

I work with OpenBSD and I want to limit the port 22 for all user who have an IP between 192.168.42.40 - 192.168.42.60. But I don't know how to do this. I need to modify the packet filter ? (SSH is on ...
0
votes
0answers
14 views

Connecting to PostgreSQL with JDBC through a SSH tunnel, I get data for a while and stops, but SSH connection is still alive

Im getting data from a PostgreSQL DB through an SSH tunnel: autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -L 9999:localhost:5432 root@mypostgresip The data ...
1
vote
1answer
41 views

.ssh/environment: Is variable expansion (PATH=…:$PATH) supposed to work or not?

I've just discovered ~/.ssh/environment and the PermitUserEnvironment setting in OpenSSH Server. It works great for setting variables to literal strings; e.g.: # host ~/.ssh/environment PATH=/home/...
0
votes
1answer
21 views

Ubuntu Server, Multiple SSH users installing programs on the same machine

What I want Well, I need a way to allow multiple (10-15) ubuntu users to run commands with root privileges (sudo) via ssh, but in a way that doesn't affect the machine neither other users. Some ...
6
votes
2answers
1k views

how to append public keys to remote host instead of copy it

I used in my bash script the follwing cli , in order to send the public key to remote machine sshpass -p $pass scp /root/.ssh/authorized_keys root@$remote_host:~/.ssh/authorized_keys but since we ...
0
votes
1answer
25 views

Missing syslog entries for OpenSSH

I would like to save the log for OpenSSH client. The manual says that I can use ssh -y example.com to turn on logging. Configuration manual says that the default Syslog facility is user; I didn't ...
0
votes
0answers
63 views

Unable to deploy files to remote ubuntu server

I have to deploy the files from the remote development server to remote production server using Gitlab-ci.yml file in the development server. I have generated and pasted the public key of my remote ...
-1
votes
0answers
27 views

How to ssh guest to host in qemu on windows?

I have Debian running in qemu on windows.I want to setup ssh from guest to host that is from Debian to windows how to do that.
1
vote
1answer
31 views

Permissions of directories/files when created over SSH

We have a new CentOS 8 server that we are running into issues with when trying to create files/directories over SSH. For example, while on the server as the user we are using to SSH I can create a ...
1
vote
1answer
84 views

How to increase the keepalive time with ssh server?

I connect to my device through ssh from my machine. If I am not active for some relatively short time, it closes the session after sometime. Connection to 10.X.Y.Z closed by remote host. Connection to ...
0
votes
1answer
63 views

How to install a torrent client on a NetBSD server with only SSH access [closed]

I have a remote server running NetBSD 6, to which I have access only via SSH. I have very limited Unix/Linux experience but I guess there are some command line torrent cliens available for Unixes like ...
3
votes
1answer
32 views

SSH tmux terminal lines unreadable due to wrong overlap, interleaving

I am not sure what to search for. "Terminal lines overlap" mostly brings up posts where that is the desired behavior. Let me demonstrate what I am experiencing over SSH to Raspberry Pi ...
0
votes
1answer
35 views

SSH doesn't prompt for new password when expired

I'd like to setup SSH to prompt for a new password when a user's existing one is expired, but currently it just fails to login. I use Kerberos as an authentication backend. You can see this user's ...
0
votes
0answers
23 views

Keyboard not working with X11 forwarding - same keycode 8 for almost every key

I am using X11 forwarding over SSH from a Ubuntu 18.04 server to a Windows 10 client using ssh -Y user@server The keyboard is not working properly. Using xev, I see that while some keystrokes such as ...
1
vote
1answer
29 views

SSH key accepted but remote host asks for password

I'm trying to get two server to connect via ssh keys. These two servers had working ssh key authentication before, but one of them failed and was restored from a backup. Since then, the key does not ...
0
votes
1answer
19 views

Troubleshooting inability to log in remotely or via SSH (CentOS)

A server under my control recently was recovered after suffering hardware failure. We seem to have successfully retained all data, however no one has been able to actually sign in to the server ...
1
vote
1answer
25 views

Fallback for authorized_keys

I'm working on a piece of automation that generates a list of allowed public keys and overwrites a server's user ~./ssh/authorized_keys. Is there a way to prevent a mistake in the automation to ...
0
votes
1answer
24 views

Keep processes running after SSH session disconnecting from a jump machine

I know screen can let the processes keep running after disconnecting from a ssh session, if I’m doing something like: local machine -> ssh -> server. But I need to access a server through a jump ...

1
2 3 4 5
132