All Questions

Tagged with
Filter by
Sorted by
Tagged with
-2 votes
2 answers
58 views

the theory of SSH public and Private key and its application in realworld machines [closed]

there. In this question, I have a very specific one about public and private keys. So Public keys should be put on the opposite side. For example, if we have a server, the public key of the server ...
Sina M's user avatar
  • 3
0 votes
0 answers
140 views

Using PasswordAuthentication yes in sshd config but password is not accepted during login

I tried to enable password authentication in CentOS 7 only for one user - auditor, by having this lines in my sshd.config (at the end of file): PubkeyAuthentication yes ChallengeResponseAuthentication ...
Ruslan Pylypiuk's user avatar
3 votes
1 answer
2k views

How to ssh-copy-id through a jump-host? Something similar to the -J option with ssh command

I use a jump host to connect to the remote servers through SSH. I use the following linear command for the connection. ssh -J jumpuser@jumphost:2455 remoteuser@remotehost It works fine. But for new ...
Ajaib Singh's user avatar
2 votes
1 answer
4k views

Reconnect automatically to a disconnected ssh session [closed]

I am new to this community , I am working on my iot project in which my microcontroller is working as a server, taking data and executing request. My client is end device (mobile,tablet) and I am ...
adil kampoo's user avatar
0 votes
0 answers
163 views

ssh - forward credentials without Agent Forwarding (likeProxyCommand)?

I would like to be able to use my local credentials in a remote session without Agent forwarding if possible. The reasons: Agent forwarding has security issues (port accessible to remote root users) ...
RabidMutant's user avatar
1 vote
1 answer
5k views

ssh-add works with id_ed25519 key but not with id_rsa key

I have two keys in my .ssh folder, one is an id_ed25519 key and the other an id_rsa key. If I run : ssh-add ir_ed25519 I get the Identity added ... message and all is fine. If, on the other hand I ...
AlexN's user avatar
  • 11
1 vote
1 answer
1k views

autossh working fine from terminal, bot causing permission denied from systemctl

I'm trying to integrate autossh on a raspberry pi. if I launch the command by itself autossh -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -N -R 22002:localhost:22 user@myserver everything ...
Dany Y's user avatar
  • 115
0 votes
1 answer
61 views

SSH keys for utility services on remote production server

For convienience I'd like to have a private SSH key on my remote server. But doing that creates a vulnerability if the server were hacked. Same as if I'd hard coded a password, anyone who broke in ...
Kickaha's user avatar
  • 149
0 votes
1 answer
3k views

How to use socket file to access server if SSH Agent forwarding is enabled

I have bastion host. I connect to the bastion host using username/password. And I have private key for destination Server. Flow: Local Machine -> Bastion -> Destination I know that It's ...
grep's user avatar
  • 161
2 votes
2 answers
885 views

Securely sharing SSH access in a team with SSH bastion

I need to share SSH access to a number of servers with my teammates and looking for a secure way to do it. I came up with a configuration involving a SSH bastion server, but not sure how (and if) it ...
ivangretsky's user avatar
2 votes
1 answer
5k views

SSH into remote host using jump box

I have a current setup for my servers like below: My computer ---> Jump box -----> Target server in private network I connect to the jump box from my computer using command ssh -A jumpbox ...
Venkata S S Krishna Manikeswar's user avatar
12 votes
6 answers
4k views

SSH access gateway for many servers

Managing multiple servers, in excess of 90 currently with 3 devops via Ansible. All is working great, however there is a giant security problem right now. Each devop is using their own local ssh key ...
John's user avatar
  • 887
0 votes
1 answer
475 views

Open an ssh tunnel between two servers from a 3rd trusted server

Assume I have 3 servers: A,B and C C can ssh to both A and B but A and B can't connect to eachother. Is it possible to open a tunnel between A and B using C as in "intermediary" without proxying all ...
George's user avatar
  • 115
5 votes
1 answer
8k views

Working example of multiple permitopen options in authorized_keys

I have a working key in .ssh/authorized_keys with a single permitopen option configured. I went to add an additional permitopen and it does not allow tunnels to the new server. The documentation says: ...
Shawn McGough's user avatar
1 vote
1 answer
1k views

SSH: no port[s] to connect to

I can connect to machine m2 by logging in to m1 first: [laptop]$ ssh [email protected] [m1]$ ssh [email protected] [m2]$ # i'm in! Both machines use SSH key to log in (not passwords), and it works. But ...
user124114's user avatar
-1 votes
1 answer
2k views

How to have multi SSH reverse connections using autossh?

I used autossh in my raspberry pi to connect to one of my VPS. But I have 4 raspberry-pi(s). I used the same script to connect to my remote VPS, so that I can login in every raspberry pi anytime ...
dotslash's user avatar
  • 219
1 vote
0 answers
546 views

OpenSSH Windows Error

I want to connect with putty from one machine_1 to another Windows machine machine_2. So I install a OpenSSH Server on machine_2. I generate 2 a key pair with puttygen. I paste the public key in C:\...
jofri's user avatar
  • 11
3 votes
1 answer
8k views

Can't get SSH ProxyCommand to work (ssh_exchange_identification: Connection closed by remote host)

I'm unsuccessfully trying to use SSH ProxyCommand to connect to a server via a jump box. My config is below, I'm running this command: ssh 10.0.2.54 -F ssh.config Host x.x.x.x User ...
rix's user avatar
  • 277
1 vote
0 answers
80 views

Centralize way to prevent interactive logins

I have an Ubuntu server that is used for two primary purposes for my students: To hold on to files that students need to temporarily upload for my assessment (ie: I give them an input image, and they ...
Cloud's user avatar
  • 425
28 votes
2 answers
137k views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
abbood's user avatar
  • 1,127
-1 votes
1 answer
323 views

SSH through another machine at work to an external server [duplicate]

I'm fairly sure this will have been asked before, I have found similar questions but I do not fully understand how to apply them to my situation. So, sorry for asking again. We have a number of ...
Luke Cousins's user avatar
-2 votes
1 answer
9k views

Impossible to connect ssh /root/.ssh/known_hosts': No such file or directory

I can't connect to my server with ssh. I have already started a session with ssh but i know if i quit this session, i won't be able to connect again to my server. ssh [email protected] @@@@@@@@@@@@@@@@...
mpgn's user avatar
  • 217
2 votes
0 answers
178 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
Dan Schmidt's user avatar
4 votes
2 answers
35k views

Create an SSH tunnel with authentication keys - Syntax

I have to create an SSH tunnel to connect a deployment server to an VPN: DeploymentServer --> Gateway --> PrivateServer Each machine using a key, I tried the following command: myMachine $ ...
Guilhem Soulas's user avatar
0 votes
1 answer
459 views

ssh_exchange_identification: Connection closed by remote host remote desktop

I'm trying to connect to my work server using my macbook. in the morning it was working and now its not. This is what im doing ssh -vv [email protected] -L 1024:bolton:3389 This is ...
c11ada's user avatar
  • 103
0 votes
2 answers
380 views

Web server intermediary for public key authentication

My home network is currently sitting behind a DD-WRT router that I can access using public key authentication. Whenever I need to access something from my home network I can simply create an SSH ...
ddewaele's user avatar
  • 333
0 votes
1 answer
1k views

ssh over a tunnel in order to configure auto login

I m trying to copy the id_rsa.pub key to the server. The server in my case also has a virutal machine called dev which runs on the host machine. I copied the id_rsa.pub key to the host for auto log in ...
Vihaan Verma's user avatar
2 votes
1 answer
782 views

Why does ssh public key authentication stop working when I am tunneling ssh commands through a machine?

On Computer A, I have a public and private key for my github account. When I use this machine directly, using a connected keyboard and display, I can do all the git remote repo commands, like git pull ...
dan's user avatar
  • 867
0 votes
1 answer
98 views

Gaining access to remote server over SSH from the same machine but with a different IP address

If a user can access a remote machine using SSH ok but then their static IP address changes and they find they can't access the machine, what's the problem? I don't want to destroy the user's current ...
ale's user avatar
  • 933
3 votes
2 answers
3k views

Connect SSH Bastion Server to DB Server

I want to connect to a Linux Database Server on a private subnet through a Linux SSH Bastion Server situated on a public subnet. I also want to create a tunnel to port 3306. When I attempt to create ...
JMC's user avatar
  • 506
3 votes
4 answers
2k views

Copy directory using ssh tunnel

The following command is working as expected. ssh [email protected] "ssh [email protected] 'cat test.txt'" > /home/shantanu/test.txt What I need to do is to copy the entire directory instead of ...
shantanuo's user avatar
  • 3,589
1 vote
1 answer
822 views

Cygwin: Run SSH.exe (without cygwin.bat) with a keypair

I have a box I'm trying to create an SSH tunnel to using a keypair without a password. If I run cygwin.exe and generate a keypair without a password using ssh-keygen and put the public key on the ...
J.r. Hounddog's user avatar
1 vote
2 answers
544 views

Setting up local IP based filtering with OpenSSH on Ubuntu

Greetings, the server admin for our company suddenly left, and left the rest of us IT folk somewhat clueless about Linux and setting up servers and such. The setup is as follows: Our local server, ...
Swader's user avatar
  • 499