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.

0
votes
0answers
21 views

Cant get a bridge ubuntu

Trying to set up kvm with some vms. I can ssh to my server, then ssh to the vm's it holds. I can ping the network from my vm. I cant ssh directly to my vm from my laptop. I have narrowed down the ...
0
votes
0answers
26 views

Reverse SSH - How to limit ports on server side

My system is SSH client that use the following SSH command in order to create a tunnel: ssh -R 0:localhost:80 -TN -p 22 user@pass I use "0" so the port will be chosen randomly by the SSH server. ...
1
vote
0answers
10 views

How to record failed ssh and email logins (usernames and passwords?)

I have a Debian VPS and I get a bunch of failed ssh/email (postfix, dovecot) login failures. In the logs I can see the username, but not the password. Is there a way to monitor both? Log examples: ...
0
votes
0answers
24 views

rsync not using the ssh-agent?

I have this running on gitlab ci, and it works for regular ssh (copied from the gitlab ci docs): eval $(ssh-agent -s) ssh-add <(echo "$SSH_PRIVATE_KEY") mkdir -p ~/.ssh echo -e "Host *\n\...
0
votes
0answers
42 views

Virtualized Ubuntu - I can SSH to one interface, but not the other

I've recently spun up a new Ubuntu 18.04 virtual machine, using image file ubuntu-18.04-server-cloudimg-amd64.img. When the VM came up, there was already an ens3 interface, and my KVM host assigned a ...
0
votes
1answer
30 views

Why may a machine be seen as having a local address by ssh server when sshing to itself through public IP?

I configured sshd_config on two machines A and B in the same way such that connection is possible in local network with password : Match address 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 ...
0
votes
0answers
24 views

Stop completely the services of easyapache 24 [closed]

I recently acquired a cloud server running cloudlinux 7.4 and this has installed the web server easyapache 24, so I was wondering if it is possible to completely stop the services of this. either by ...
1
vote
0answers
19 views

Fail to ping/ssh from single machine to another specific machine

I'm using Google Cloud, there are 2 machines on the cloud which can't ping each other, A can't ping B, and B can't ping A too; all other machines can ping to A&B as usual. But it happens only on ...
1
vote
1answer
19 views

sshd verbose logging when renamed to sftpd

I need a specific PAM configuration for my SFTP service, so I copied the sshd executable and renamed it sftpd. Then I set up a specific configuration in /etc/pam.d/sftpd to authenticate the users ...
1
vote
2answers
33 views

SSH forward from public EC2 to RDS not working

So I am relatively new to the networking aspects of AWS and am having a problem. Here is a short description of what I have. I have a RDS that is not publicly accessible. The endpoint resolves to a ...
0
votes
0answers
15 views

Custom access denied message OpenSSH server

I just wonder if there is anyway to set a custom access denied message instead of: Permission denied (publickey). Or, anyway to display any kind of message to the user trying to login. I'm after to ...
0
votes
1answer
30 views

SSH session closed when BASH script terminated (quite NON-standard case)

I start ssh session from a BASH script. So, NO console is involved at all. (This is needed for reverse-SSH). I need the SSH session: To keep alive after the script is finished; To terminate it from ...
-2
votes
1answer
33 views

what is the order rsync with ssh key? [closed]

how to insert my key to transfer pc files to remote server? root@debian:~# rsync -avz -e ssh /home/giorgio/encodage/DSCN8242.mp4 debian@adresss_remote_server:~/home/newhome/le_chemin../videos/ ...
1
vote
2answers
89 views

Ubuntu SSH connection hangs when I run ifconfig with IPv6 enabled

I've been playing around with IPv6 and setup a DigitalOcean droplet. The only difference between now and before is that I told it to setup IPv6. More often than not, when I run ifconfig the SSH ...
-3
votes
0answers
38 views

How to use putty to replicate this SSH connection? [closed]

Hi from my linux terminal im using this command to connect with a private database from my company ssh -i "keyfile.pem" -L 1521:[private database ip]:1521 [user@host in the same network] -N so i can ...
0
votes
1answer
58 views

Linux VRF Aware SSH

I am trying to create a management vrf for a linux device (it is in Azure) which is on eth0, while using eth1 and eth2 as packet forwarding interfaces. So far using the Cumulus guides I am using this ...
0
votes
0answers
16 views

Fails to log in to pfsense using ssh

When I attempt to connect to my secondary pfsense using ssh sometimes get the some of the following output: # ssh gate2 Netgate SG-1100 Netgate Device ID: <redacted> ...
0
votes
1answer
37 views

SSH: What's the difference between -L and -R?

I looked at the ssh manual (man ssh) and read the definitions for -L and -R option but don't quite understand the difference. Both seem capable of forwarding requests to a desired host and port. Can ...
0
votes
0answers
21 views

function that ssh's to different server routed through local computer [duplicate]

I can ssh to multiple servers but once I've reached one of them, I can't ssh to the next I have to go back to my local machine and then ssh to the next server. I would like to set up a script that ...
0
votes
0answers
38 views

How to mount remote directory with authentication, but without encryption?

I have 2 servers that are connected over the internet (not a secure connection), A and B. I'd like to mount a folder from B on server A for the purpose of later generating and transferring a lot of ...
1
vote
1answer
38 views

Failed SSH attempt from gateway. Is gateway compromised or attacker hiding his IP

I rent a dedicated server in remote datacenter and when I look at failed SSH log attempts, I am seeing failed attempts from gateway's IP a lot since yesterday. Is my server provider's gateway really ...
-2
votes
0answers
35 views

how to copy public key via automation script in linux without password prompt

I'm writing a automation bash script to copy public key to remote servers, stuck with some errors. Please provide a solution to this. Script entry: #!/usr/bin/env bash #scriptt to set ssh ...
1
vote
0answers
14 views

SFTP client connects, but stops at OpenSSH version

I have a weird situation which I have been unable to determine the root cause for. I have a service I need to connect via SFTP to on the internet. When connecting via SFTP this is what I see when ...
6
votes
0answers
129 views

What caused a huge amount network traffic via SSH?

I have a virtual server running Ubuntu 18.04 from a well known hosting company. This morning our Fortigate Firewall logs shows that my Win10 computer transferred 3.5TB to and 6.5TB from my virtual ...
0
votes
0answers
17 views

Reverse ssh SOCKS proxy for 2 servers?

I can ssh into two servers, A and B. B is very powerful but has limited internet access, while A has full internet access. I can ssh from A to B but not B to A. Given this limitation, how can I set up ...
0
votes
1answer
26 views

SSH exitOnForwardFailure=yes doesn't work for local forwards (-L)

I want to use the ExitOnForwardFailure ssh option, but it doesn't seem to work: $ ssh -f -L 8080:localhost:22 -o ExitOnForwardFailure=yes root@server.com "sleep 60" ; sleep 3; ps xu|grep ssh bind: ...
0
votes
0answers
18 views

Installing ssh-askpass on a ec2 instance & progmatically creatting a ssh tunnel

I am trying to be able to create a ssh tunnel on server startup. I've taken guidance from this answer on SO for guidance on what I need to do to be able to pragmatically pass in the password for the ...
0
votes
1answer
29 views

Block dropbear SSH daemon for incoming connections

I have a linux device with a dropbear running on it. I want to use the device as SSH client only, and not allow any SSH connections to it. In order to do it, I added this line to the config file: ...
1
vote
2answers
37 views

Restricting hosts in a user specific ssh config

I am trying to create a new config file in (user_home)/.ssh/ and setup some rules that would restrict only logins for one user on the system without changing the current /etc/ssh/sshd_conf file or use ...
0
votes
1answer
38 views

Send rpm to multiple systems, remotely execute rpm install and repeat

Fairly long time reader, first time poster. I am not a scripter (yet) but I understand/know some basics. Not all the basics, but some. I've been doing lots of searching but have not found my ...
1
vote
1answer
34 views

Thousands of incoming SSH connection attempts despite firewall lockdown

So my server is getting slammed with thousands of SSH login attempts. Fail2ban is catching and banning them - but my inbox it's worrying me and it filling up inbox with alerts. Here's a sample of what ...
1
vote
1answer
19 views

Jenkins slave unable to clone from Gitlab

I have an autoscaling Jenkins cluster on AWS, which spawns & runs agents via JNLP. Both Master & Slaves run on Ubuntu. I don't quite understand where Jenkins actually stores the SSH keys for ...
-1
votes
1answer
44 views

How to use ssh tags on ssh_config

Hi i'm wondering how to use a previously defined tag in my ssh_config file which looks like this Host myhost Hostname myhost.ddns.net Match user jhonfoo host myhost IdentityFile ~/....
0
votes
1answer
37 views

How to have ssh session inherit environment variables from sshd?

I have sshd set up in a remote host with bunch of environment variables set. Then I ssh'd into it and get the following with: ps USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
0
votes
0answers
37 views

How to use the ssh server with pam but with the password is on?

I have read so many tutorial about how to config OTP. And now I have success to use the OTP to login my server, but there also have a problem when I just not input the verify code of OTP. It will hint ...
0
votes
1answer
41 views

GCloud Compute Engine to local Hyper-V stuck on localhost login

I'm trying to get my GCE server off the cloud and onto a local virtual machine. I've been able to successfully get the server image into the correct format using this guide however I can't figure out ...
0
votes
1answer
34 views

Pass variable in remote SSH-command in Jenkins-job

i have a little test job: touch 22.txt echo "wwe" > 22.txt test=$(echo ${BUILD_NUMBER}) echo $test ssh jenkins@srv1 "mkdir D:\myfolder\$test" ssh jenkins@srv1 "dir D:\myfolder\" BUILD_NUMBER ...
1
vote
1answer
42 views

How does systemd put sshd processes in slices?

I'm diagnosing an SSH bastion I manage. This machine has about 5500 SSH connections with port forwarding at any given point in time. Recently, I ran into an issue where SSH connections where refused ...
0
votes
0answers
46 views

Ssh connection fail with public key on port 22 but succed on port 2222

I’ve trouble to connect to a server with ssh. Everything works fine last week, and now the ssh server only accept password authentication and dosen’t allow public key. The server with sshd is a ...
0
votes
1answer
87 views

Synology DSM (Unix) - Cannot SSH with another user

On my Synology (DSM 6.2.2-24922), I have 3 users: admin (disabled ssh and login) user1 (my new admin user, recommanded by Synology) user2 (not admin) I can connect throw ssh with user1 but not with ...
0
votes
0answers
31 views

VPN Trough Reverse SSH

Diagram I have: Client behind a nat VPS(AWS) OpenVPN server installed in a different nat I want to connect from my client to the OpenVPNServer trough the VPS. I have been able to create a reverse ...
0
votes
0answers
20 views

Unable to ssh into IBM Flex Node

I have an IBM Flex node that I'm unable to ssh into (but am able to ssh from it into other machines). When I tried to ssh in using SSH Secure Shell, I get the error message: Server responded "...
-2
votes
1answer
34 views

Allowing SSH from selected IP through a definite interface [closed]

I'm Using Ubuntu 18.04 and I have two different interfaces in a single card. Let's suppose that the IP's of said interfaces are 1.1.1.1 & 2.2.2.2 I want that anyone can connect with ssh through ...
1
vote
1answer
95 views

Logging SFTP File Transfers in Docker container

I want to log SFTP file transfers. My sshd_conf is: Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ed25519_key PermitRootLogin yes AuthorizedKeysFile .ssh/...
1
vote
1answer
55 views

WinSCP from Windows 2000 server to Windows 2016 OpenSSH server refuses to start shell/command

I have a Windows 2000 server that I installed WinSCP 4.4.0 on, and a Windows 2016 server that I installed an OpenSSH server on. I can ssh into the Windows 2016 server fine from Linux, as well as from ...
1
vote
1answer
85 views

emulate telnet over ssh

I have a client/server application that work over a telnet connection, and it does not support SSH. Basically the client opens a telnet connection to the server, which starts a specific shell, and the ...
-2
votes
1answer
47 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
19 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
23 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
35 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 --...