Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

I am using tigervnc server installed on server side on ubuntu and controlling remotely on windows 10 via vnc viewer

But suddenly black screen comes, i was using it since 2 months. Is there any way I can fix it up. I just want to remove the black screen and access the desktop of ubuntu like earlier. I am able to ssh ...
0
votes
1answer
34 views

Prevent user from seeing list of other user's home dir

I want to prevent a user from seeing a list of home directory(of other users). By default, a user can not access other user's home dir but can find another user's home dir like below: [opc@instance-...
-2
votes
0answers
15 views

how use ssh with MultiMonitortool [migrated]

Hi guy I want change my pc resolution form my phone. my ssh command on my phone not working. C:\MultiMonitor\MultiMonitorTool.exe /LoadConfig C:\MultiMonitor\gaming.cfg but this command is working ...
0
votes
0answers
16 views

Concurrent ssh connections on control server keep dropping

I'm facing an issue with setup I am using for ocassionally doing maintenance on a bunch of customer servers via remote SSH Following Setup: 1 Control Server X Arbitrary number of Customer servers set ...
1
vote
0answers
23 views

Use local ssh_config settings on a remote server

Good day, friends! I've got a locally configured ~/ssh/config file with all the hosts set up as they should. I am using them successfully when doing my ssh from the local computer like ssh dev. But ...
0
votes
0answers
15 views

Cannot Remote-SSH on VS-Code from a WSL2 Remote Folder

I have installed VSCode (v1.62.3) using Windows (v10.0.19043), and have installed WSL2 (ubuntu 20.04) distribution. I reopen a folder in WSL and with WSL2 terminal i have setup my ssh keys (/home/user/...
0
votes
1answer
27 views

How can I do this port-forward?

Hello I try to do a port forward in this network As you can see I have the localhost when I want to execute a curl to localhost:9203, in order to get access to 10.0.0.1:9200. 10.0.0.1:9200 is a ...
0
votes
1answer
15 views

EC2 disabling SSH password authentication from snapshot

I maintain a CentOS 7 server in AWS EC2 which uses password authentication instead of private keys (this is beyond my control). I recently started testing a daily backup system using snapshots of the ...
0
votes
1answer
19 views

AWS EC2 instance randomly refuses connections. Given the context below what could be causing this?

Context: The instance sits behind an Application Load Balancer. The main and only route table for the VPC routes locally as well as to the Internet Gateway The security group for the instance and Load ...
0
votes
0answers
19 views

Host key changing during reboot

I have four Azure VM machines running Ubuntu 20.04.3 that I regularly shut down. Yesterday I shut them down, and early today I restarted them. Usually this presents no problems. Today, one of the ...
0
votes
0answers
21 views

CentOS 7 PAM / LDAP SSH/LOGIN user does not start in his home directory

On a CentOS 7 machine, users can use their LDAP credentials to connect to my servers. The first time they do this, the pam_mkhomedir is doing its job well. The user's folder /home/jdoe is well created ...
0
votes
0answers
15 views

Authentication with pub/priv key pair fails for chrooted users

I'm trying to isolate certain users from other users, which requires the use of either virtualization or jailing. At the moment I've gone with jailing, which mostly works fine, except for a single ...
-2
votes
1answer
40 views

Accidentally exposing an SSH server with a weak password login [closed]

I recently realized that I had an internet facing SSH server which could be logged into with my username and a weak 6 digit password. Looking into my ssh logs showed that somebody tried to log in ...
0
votes
1answer
53 views

Google Cloud Virtual Machine SSH Terminal Could not connect

I have a machine installed in Google Cloud VM, I was making the SSH connection here without any problems, but when I wanted to log out and connect again, I started to get no results here. I stay on ...
0
votes
0answers
18 views

How to lock an user account on failure of ssh PubKey based authentication on centos

I am looking to lockout a user account for certain time on 3 consecutive failures of ssh PubKey based authentication. I have tried PAM approach, but that is actually working with password based ...
0
votes
0answers
36 views

rsync over multiplexed SSH connection and multiple jumphosts

I need to rsync a file from remote hosts to my local machine over multiple jumphosts. I'd like to use shared SSH connections so that I don't have to submit 2FA multiple times at some jumphosts. The ...
1
vote
0answers
30 views

Vagrant ssh config fault

Good afternoon. There was a need to configure SSH access from an external network to a virtual machine in Vagrant (VirtualBox, CentOS/7). I made a mistake somewhere and lost the ability to connect to ...
0
votes
1answer
41 views

SSH from Windows 10 to Manjaro Linux using its hostname [closed]

I am using PuTTY to connect to a Lunix machine on local network via ssh and it works fine if I specify the IP address. However I cannot do it using the machine's host name. It seems that Windows ...
0
votes
0answers
21 views

RHEL 8 Ansible playbooks not working with FIPS enabled

I have two sets of Linux VMs in a GCP (Google cloud) environment: Debian9 and RHEL8. The RHEL8 environment is FIPS-140 enabled, due to security/compliance requirements. None of our Ansible playbooks ...
0
votes
1answer
20 views

Can't `ssh` and the `docker exec` in a single command

I want to ssh into a remote server that runs a docker engine and then docker exec a bash in my-nice-container, in interactive mode. I want to do all in one shot. I'm doing this from my local computer: ...
0
votes
0answers
40 views

How to disable inbound only SSH connections via Group Policy?

I need to disable SSH inbound only connections on some machines running Windows 10. As of now, I've only found out how to disable SSH altogether but these machines still need to be able to SSH into ...
0
votes
0answers
26 views

Cannot SSH into AWS E3 AMI (Ubuntu 18.04) after ubuntu-desktop installed

I am trying to build a standard desktop AMI image on AWS that I can launch on a new EC2 instance when I need it. The issue I am experiencing is that when I make an AMI from a perfectly working ...
0
votes
1answer
31 views

Connect remote machines via SSH to command prompt

I created an SSH connection between my machines, and then i set on one of them a PowerShell command telling windows to provide the PowerShell console when a distant machine connects to the current via ...
1
vote
1answer
62 views

Is it possible to pipe qemu-img into SSH target?

I tried the following command, but only an empty file is created on the target and the command stays open qemu-img convert -f raw -O vmdk /dev/sda1 - | ssh foo@bar "cat > /home/foo/foobar.vmdk&...
0
votes
1answer
33 views

SSH connection works for root but not user; fails after "Trying private key"

I'm setting up password-free ssh connection to a debian remote server. I've generated a key on my local machine and placed the key in both /root/.ssh/authorized_keys and /home/user/.ssh/...
0
votes
0answers
21 views

NFS "an incorrect mount option was specified " ionos unable to mount shared storage

the issue is we followed the instructions here but get mount.nfs: an incorrect mount option was specified whenever we do mount -a
1
vote
1answer
116 views

How do I disable sshd algorithms?

From my vulnerability scanning software I get this flag/message The following weak key exchange algorithms are enabled : diffie-hellman-group-exchange-sha1 diffie-hellman-group1-sha1 I want to ...
0
votes
2answers
31 views

How to clear local ssh port for forwarding to remote?

I'm using ssh forwarding local port to a bastion server(10.20.30.40), connect to remote RDS database. ssh -i ~/.ssh/id_rsa -f -N -L 5432:db1.cluster-1.region.rds.amazonaws.com:5432 10.20.30.40 -v ... ...
0
votes
1answer
25 views

ssh TOTP connection with jump host forwarding

How can I simplify this? Perhaps using agent forwarding? I have an SSH jump host with 2FA via TOTP x2 and a machine which uses 2FA as well(jump host and machine): ssh myuser@host.corp.com -L 22222:...
1
vote
1answer
37 views

SSH using public key losing Authentication on windows server

I want to SSH from my laptop (A) to Windows Server (B) and run commands against SQL Server (C) from powershell. All three in one windows domain. I'm running built-in openssh server and client for ...
1
vote
1answer
29 views

X11 forwarding through a jump box

I have a machine that is configured to auto connect to a jump/bastion box when there is an internet connection. I configured its ssh config file as follows: Host tunnel HostName <jump ...
1
vote
1answer
30 views

run multiple commands in oneline (like in linux **date && ls**) in **HP iLO3 ssh console

i want to run multiple commands in oneline (like in linux date && ls) in HP iLO3 ssh console, but it (&&) not works. How i can do it? I not found it in documentation i want run 2 ...
1
vote
0answers
25 views

Unable to log in with AD credentials

I have a DC (Debian) that seems to be working fine. I am able to join the domain but when I join a Fedora member it joins but the DNS isn't registered. I have to manually add the record to the dc. ...
0
votes
0answers
18 views

Iptables hitcount instantly blocks ssh

Need some help with iptables. I always use to have vps with public ipv4 ip and used these rules in iptables to block ssh connections that tried to connect too many times. -A INPUT -p tcp -m tcp --...
1
vote
3answers
126 views

Does FIN-WAIT-1 mean I was hacked?

I'm very new to server security and this is my first post here. Recently, my server has been experiencing many SSH login attempts from unknown sources. A couple of minutes ago I logged in to the ...
0
votes
0answers
20 views

SSL_CERT_ERR on both Edge & Chrome. Not sure what is going on

When I try to visit my website I get SSL_PROTOCOL_ERROR, in Edge & Chrome. Shown in the image below... When I look at my error logs this is all I see: https://sourceb.in/stBLuTphw0 When I google ...
0
votes
1answer
67 views

fail2ban does not work for ssh except on port 22

My fail2ban is not working for sshd except for the default port 22/tcp. My old, working config in jail.local: [sshd] enabled = true port = ssh Tested fail2ban, did ban me after 3 failed attempts ...
0
votes
0answers
36 views

port forwarding through a bastion host

I want to port-forward to a server through bastion host. The way I connect to bastion is why my ssh key after I login to the company network. The connection from the bastion to the server, I want to ...
0
votes
0answers
61 views

ssh with WAN IP timeout

I have trouble setting up ssh clone for gitea. I use port 2222:22 for the docker, and port forwarding is set up on my router. I could ssh git@localhost -p 2222, but could not ssh git@<public_ip> ...
0
votes
1answer
28 views

How to edit the middle of host name (%h) in ssh config?

In ssh config you can easily edit a hostname by appending or prepending it with something. For example, when you want to connect to server with ssh test5, but actually the server name is test5.mail, ...
0
votes
0answers
68 views

How to configure jenkins-agent to allow ssh via password?

I am trying to add a jenkins agent running rockylinux 8. How do I configure an jenkins-agent to allow ssh connection from the jenkins-controller via password? I did the following steps on the new ...
0
votes
0answers
11 views

enabling pam.d/google authenticator/2-factor authentication in sshd prevents EC2 Instance Connect from accessing instance

Question: is it possible to configure SSHD to enforce 2-factor for all users, but also allow AWS EC2 Instance Connect to continue working? AWS has this feature "EC2 Instance Connect" that ...
3
votes
0answers
99 views

Server become unreachable and ask for a htaccess

I'm currently running an Ubuntu 20.04 server on a Gigabyte BRIX (GB-BACE-3000), it works well except the network since few days. After a while (few hours after powering up) I can't reach the server ...
0
votes
1answer
64 views

Restrict user's access to only one directory

ServerA needs to have a directory of ServerB mounted in a location, with write permissions. I've been using SSHFS for this. I find SSHFS being very stable (100% reliable), while NFS was not so stable, ...
0
votes
0answers
11 views
0
votes
0answers
8 views

Apache web page on local network accessible from iPhone and another computer on same network. Why can't I reach it from a third?

I have looked at the Similar Questions and searched on the web. Most answers are for very specific instances of Rails, or using Eclipse, or trying to access from outside the local network to a server ...
-2
votes
1answer
68 views

Is openssh-server safe on a local network? [closed]

Quick description of my situation: 2 home use computers, both connected to a standard AT&T router. Both computers get a 192.168.1.x IP address from the router. I have no idea what the IP of the ...
0
votes
1answer
51 views

OpenSSH ChrootDirectory man page remark on safety

In the sshd_config(5) man page in my system I found this remark in the section about ChrootDirectory: For safety, it is very important that the directory hierarchy be prevented from modification by ...
0
votes
2answers
95 views

Require root password when executing "sudo -s"

I have a CentOS 7 server on AWS. When logged in with the centos user, how can I prevent sudo -s logging in to root without requiring root's password? [root@server ~]# cat /etc/sudoers | grep rootpw ...
0
votes
0answers
35 views

AWS EC2 with and without EMR and Spark will not SSH to Port 22

I'm on a MacBookPro. I tried starting an EC2 instance with EMR and Rstudio and Spark. I got a port 22 time out. I asked AWS for help and took down my firewall and restarted my modem. Still, nothing ...

1
2 3 4 5
167