Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
1answer
13 views

making it impossible to change a secure key passphrase

According to this: How do I change my private key passphrase? it is possible to change your private RSA/DSA key passphrase any time. Is there a way to generate a key with a passphrase that is set ...
-2
votes
0answers
10 views

Google cloud instance not working

i am using google cloud vm-instance. when i run nmap iP I received following result 80/tcp closed http 443/tcp closed https 3389/tcp closed ms-wbt-server I can't start apache. site is down. How ...
0
votes
0answers
10 views

Issue Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019

Issue Hardlink/Junction not working when chroot all users to c:/share dir in Windows OpenSSH Server 2019. Link Created mklink /d E "E:" mklink /d F "F:" Entry in sshd_config file ChrootDirectory c:/...
0
votes
1answer
27 views

Rsync dns issue

Recently the backup script I've been using for years has started to give me trouble. The part that's problematic boils down to this: for DIR in "${BACKUP_DIRS[@]}"; do rsync --acls --archive --...
0
votes
1answer
16 views

Is connection to Bastion Server Open to Anyone

My team uses a Bastion Server as a tunnel server to secure our AWS EC2 instances. The connection to Bastion was configured based on this article. To the best of my understanding, the Bastion server ...
0
votes
0answers
17 views

SSH to Bastion Server asking for Password

I’m having trouble with my local SSH agent (running Mac Mojave 10.14.2), connecting to my team's Bastion Server. We use it as a tunnel server to secure our AWS EC2 instances. The connection to Bastion ...
0
votes
0answers
21 views

SSH login error, always returns: Permission denied, please try again [on hold]

The server is running centos 7. If I login via putty, everything is fine. but if I log in server from a centos 6 server via ssh command, it always returns: Permission denied, please try again. I'...
0
votes
1answer
18 views

Not able to ssh after reboot on aws ec2 instance “Connection timed out”

After rebooting an aws ec2 instance I am not able anymore to ssh into it, putty on Windows is telling me "Network error: Connection timed out" and the same happens from the command line on a Linux ...
1
vote
0answers
24 views

Sshd starts two processes, but systemd stops only one

There is on the linux mint 18.3 sshd (7.2p2) starts with two processes. But when I run service ssh stop only child process stops and parent process is still run. So when I restart ssh service it can't ...
0
votes
0answers
20 views

How To Manage Multiple SSH Keys For Gitlab in Mac [on hold]

I have two gitlab accounts, one personal and one for work. Initially I generated an ssh key for my personal gitlab account. Now I created a new ssh key for my work gitlab account. So now I have two ...
-1
votes
1answer
24 views

SSH connection between two hosts with differents user

i have two hosts H1 with ip=10.10.10.15 , OS=Windows Server 2016 and username=administrator H2 with ip=10.10.10.16 , OS=Centos7 and username=user I attempt to create a ssh connection between H1 ...
6
votes
3answers
291 views

How can I add a .pem private key fingerprint entry to known_hosts before connecting with ssh?

WARNING -> Please be careful when reading this problem description. I had some assumptions that were not correct as I was writing this question. Make sure you read my answer explaining what I had ...
-2
votes
2answers
53 views

Auditing SSH sessions?

I'm looking for a way that I can record and audit SSH sessions for users on my server. I need to be able to know when a user executed a command, what command they executed, and also be able to follow ...
-1
votes
0answers
22 views

Does not work SSH-authenfication via public keys [closed]

i have two servers in one local network with CentOS 7. When i am trying to connect i have ssh jenkins@192.168.110.5 Permission denied (publickey,gssapi-keyex,gssapi-with-mic). in debug debug1: Next ...
-1
votes
0answers
21 views

SSH tunnel to share local virtual machine's VPN connection with host? [closed]

I have a local VM running windows 10 on a mac. i use this virtual machine to connect to a VPN. Is there a way, such as an SSH tunnel or something, that I can use the virtual machine's VPN connection ...
0
votes
0answers
18 views

How to mount a remote file system via proxy ( corkscrew )

I'm trying to mount a remote filesystem but I'm sitting behind a proxy I can log into the remote file system with the help of corkscrew. I've made an alias in .bashrc for this. On the remote side the ...
-2
votes
0answers
42 views

Connect to Windows 10 SSH server from Linux client [closed]

From Windows 10 1809, an OpenSSH Client and an OpenSSH Server are embedded in Windows itself as optional features: this page shows how to install and configure them. After following all the ...
0
votes
0answers
16 views

SSH Randomly Disconnecting Without Warning

I have been using a certain remote server for the past several weeks without issue, but earlier this week, all of a sudden, it began to deny me entry. Rebooting the server allows me to authenticate ...
1
vote
1answer
30 views

“expect” in bash to input password

I'm trying to find a way to automatically enter a password when starting an SSH session. Is there a way to do that? I'm using openssh on Win10 to connect to my remote server. Thank you
0
votes
1answer
16 views

How to configure Jenkins Job to use Bitbucket Repository Access Key when cloning repo?

In one of my bitbucket repositories on a Bitbucket server instance, I've configured an Access Key and would like to use this access key within a Jenkins Job to clone said repository. However, there ...
0
votes
1answer
13 views

Linux PAM: SSH key + 2FA (google authenticator) + password - Specify auth requirements per user

I have installed and configured PAM on my Ubuntu server which is working correctly. To log in I want to require an SSH Key to be installed, a password to be provided and a valid code from an ...
0
votes
1answer
60 views

Restricted SFTP-only access to a single directory using OpenSSH

I configured SFTP using open SSH by using following link on my windows server 2012 Installing SFTP (SSH FTP) Server on Windows Server 2012 R2 It is well configured and perfectly working fine .. I ...
0
votes
0answers
18 views

SSH disabling google-authenticator from specific IP

I have setup google-authenticator as 2FA together with publickey authentication. What I need is to skip the 2FA when connecting by SSH from specific IP. I'm running Ubuntu 18.04. Relevant snippet ...
2
votes
0answers
21 views

How to setup multiple id_rsa.pub on my centos server? [migrated]

I have this legacy server with CentOS release 6.6 (Final), w/ git version git version 1.7.1 I need to pull on it different Github projects. Access to server is shared by multiple persons via a common ...
0
votes
0answers
11 views

SSH multiplex timeout configuration

I use ssh multiplexing, from time to time my hosts are rebooted or not reachable but the ControlMaster is still active and keeps the connection details in the ControlPath file. When I try to connect ...
2
votes
1answer
33 views

Install OpenSSH using cmd/terminal only?

Is it possible to install OpenSSH entirely using the cmd/terminal? All of the solutions I'm finding on Google require navigating to the Settings app: https://winaero.com/blog/wp-content/uploads/2017/...
1
vote
0answers
54 views

How to configure SSH for Vagrant environment?

I prepared a cluster of 4VM's with this Vagrantfile. hosts = { "n1" => "192.168.77.10", "n2" => "192.168.77.11", "n3" => "192.168.77.12", "n4" => "192.168.77.13" } Vagrant.configure("2") ...
0
votes
0answers
11 views

Remote forwarding disabled?

Trying to set up remote forwarding on a server that has been set up by someone else. (The same baffling server detailed here: Text editors not functional) In an attempt to get around the broken ...
1
vote
2answers
73 views

Text editors not functional

Running into a slightly strange situation. Basically for reasons outside of my control I'm on a server that somebody else has set up. I've got sudo access, I just can't figure out what happened or ...
0
votes
2answers
29 views

ssh -i Permission denied public key

I am trying to SSH as a user on host. I've created ssh keys using ssh-keygen for user gitlab on the host and copied the public key id_rsa.pub to ~/.ssh/authorized_keys alongwith copying the private ...
0
votes
0answers
20 views

Jenkins: Docker plugin, “All nodes of label […] are offline”

I got a Photon OS server running, where I'd like to create and use containers as jenkins nodes (Docker plugin). During the job I get "All nodes of label [...] are offline" although multiple containers ...
0
votes
0answers
22 views

SSH after port change [duplicate]

I changed the SSH port on my server, but I then forgot to open a hole in the firewall for that port specifically. Now I cannot SSH into my server anymore. Is there any way around this? Thanks
0
votes
1answer
55 views

OpenSSH Windows Server 2016

I am trying to install OpenSSH on a windows server machine. When i use this command: Get-WindowsCapability -Online | ? Name -like 'OpenSSH* I don't get this output: Name : OpenSSH.Client~~~~0.0.1....
1
vote
1answer
26 views

Differing ssh host key in Container-Optimized OS instance

I created a Container-Optimized OS instance in the Google Cloud. When I try to connect to it via ssh from outside the ssh host key fingerprint shown differs from the output of ssh-keygen -lf /etc/ssh/...
0
votes
0answers
19 views

GCP Oslogin error

I have enabled os-login for an instance by setting the metadata value as 'enable-oslogin=TRUE'. Even after setting the IAM roles as Organization admin and Owner of the project the issue persists as ...
1
vote
0answers
20 views

x11 forwarding: Server has no GPU - and no swrast_dri.so

I am trying to set up my server so that I can use Chromium remotely, which I need to put away some of the silly IP restrictions... Therefore, I need to utilize X11 forwarding and - apparently? - need ...
2
votes
1answer
53 views

How to setup ssh for a couple of servers?

I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be ...
0
votes
0answers
7 views

MacOS/X: ssh -6 to mDNS hostname on LAN only works after ping6 to same hostname [migrated]

I'm observing some "interesting" behavior on my Mac -- I have a Linux box running on my LAN with IPv6 configured, and I when I try to "ssh -6" from my Mac to that box, the mDNS hostname resolution ...
2
votes
3answers
166 views

Is it possible to set that path of the scp command to use by OpenSSH sshd daemon?

I have a curious problem with OpenSSH in SLES 12 SP4 Linux servers. We install a customized OpenSSH on ourservers, so in each machine we have two versions of OpenSSH, the official package of the ...
0
votes
1answer
38 views

SSH Gateway for accessing remote ssh servers

I am currently have multiple users accessing multiple customer servers with ssh access (which all only allow access from our public office IP). This kind of gets annoying if a new employee enters the ...
-1
votes
1answer
26 views

Directories cease to exist while using tmux

When I connect via ssh to a terminal at work I need to keep sessions alive to run various scripts. However, I often find that the scripts fail because some directory ceases to exist in the meantime. ...
1
vote
1answer
26 views

How to fetch ssh keys from servers?

I need to login to a host via ssh, get a keyfile, close the connection and then use the key to login without password on several machines. The underlying problem is that I need to perform tests on a ...
0
votes
2answers
46 views

Restricting a ssh key to only allow rsync/file transfer?

I have 2 servers (A & B), and I need to rsync files from A to B as root. Allowing root ssh login is possible (PermitRootLogin without-password), but I'd like to lock it down as much as possible. I'...
0
votes
2answers
44 views

How to restrict user rights on Debian?

I have a production server, which runs an web application. Now I need to grant SSH access to a developer in order for him to work on the files of the application. He already has a chrooted sFTP access,...
0
votes
1answer
25 views

Unable to run docker-compose from ssh's shell

I'm working on setting up a script in my .gitlab-ci.yml file so that I'm able to deploy a newly built Docker image to my server. Here is how it looks so far: - ssh deploy@my.private.vps '/bin/sh -c "...
5
votes
1answer
127 views

SSH choice of second factor on login

Is it possible to have multiple 2FA pam's setup and give the user the choice of which to use on login? I have google-authenticator setup. I have successfully used my yubiko key as a second factor. I ...
0
votes
1answer
80 views

why does ssh tunnel leaves ports opened with default services

I haven't tried in a different machine, but I am trying to establish an ssh tunnel to an external server. This how I am doing it: ssh -L 9898:firewalled.service.com:443 user@some-server I have 2 ...
0
votes
0answers
39 views

Trouble connecting to Bitvise SSH server from remote machine using SFTP

I have set up a Bitvise server on an Azure virtual machine (Windows) using the following guide: https://www.bitvise.com/configuring-ssh-server-for-sftp As instructed I set up an FTP client on the ...
1
vote
2answers
44 views

Changed my Server ssh_config and now Putty displays black screen with green box: What do I do?

My hosting service sent me this link to follow to prevent future brute force attacks on my VPS. I changed the port from 22 to 899, changed my deny file with sshd: ALL then added sshd : 11.22.33.44 ...
1
vote
1answer
34 views

Can not start sshd service: relocation error

After updating openssh version from 5.3 to 7.9 I am having problems when I try to start sshd service, The script that I executed is: rpm -Uvh openssh-latest-7.9p1-1.el6.cgsl7741.x86_64.rpm --...