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
1 answer
5k views

How to ssh into CentOS 7/8 VirtualBox VM from MacOS

How to ssh into CentOS 7/8 VirtualBox VM from MacOS I have installed a CentOS 7 VM from osboxes.org on Oracle VirtualBox on my Mac. I need to be able to ssh into the VM from the Mac. I have tried to ...
adbdkb's user avatar
  • 109
0 votes
2 answers
3k views

Can't ssh into EC2 instance once VPN client connected

I'm running Ubuntu 18.04.4 LTS server in a EC2 instance. I installed expressvpn client in this server (which I'm using regularly in my home servers without any issues). Once the VPN connection ...
Sudheera's user avatar
  • 101
0 votes
1 answer
226 views

ssh forward 2 ports in one command. Is it possible?

I currently use ssh to forward ports to my localhost. I have an application that requires two ports. I can currently get it working if I run two separate ssh commands. But I was wondering if it ...
Cade Nelson's user avatar
0 votes
1 answer
427 views

Several short consecutive SSH connections

Imagine performing a short repetitive process, which ends by doing a short lived SSH connection to some server (e.g. transferring a newly generated file via SFTP). This means that there will be a lot ...
user2340939's user avatar
0 votes
1 answer
3k views

setup Gitea SSH with nginx & openssh-server

I've just setup my first local Gitea server and everything works fine except SSH. Normal SSH works fine but not when I try to interact with Gitea. The shown URL is ssh://[email protected]:123/user/...
GalaxyExpress's user avatar
0 votes
1 answer
2k 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 ...
talmag's user avatar
  • 1
0 votes
2 answers
760 views

Ssh exit code not working within function

So I have a function that looks like this. It's an oversimplified example but its enough to demonstrate my issue. For some reason, I can not get the exit status of the ssh remote command. It does not ...
Matias Barrios's user avatar
0 votes
1 answer
70 views

How to expose a port+url visible to one machine to another

Essentially I have 3 machines: A, B and C A can see B (and vice versa) and B can see C (and vice versa). A can't see C (not part of the same network). I have access to A and B. Meaning I can start ...
George's user avatar
  • 115
0 votes
1 answer
923 views

Security advantages: check_by_ssh versus check_nrpe

The question is which is more secure - as opposed to which is better from a configuration standpoint. I have a number of Centos and Debian systems. The NRPE daemon is installed and working on all ...
BurningKrome's user avatar
0 votes
2 answers
536 views

How to use ssh client without local OS login

I have server-like machines (they are not workstations, fully automated) and I need them to be able to run a script that opens a client ssh connection (to a 3rd party server such as github), and I ...
cowlinator's user avatar
0 votes
1 answer
78 views

Use two here-documents on one line

Are two here-documents allowed to be used on one line, like in the example below? I was not able to find the documentation and cannot make the example work as expected - seeing output of both echo ...
dabest1's user avatar
  • 252
0 votes
1 answer
50 views

Is there a way to set up passwordless / passphraseless ssh so can only come from one client?

I know how to set up passwordless / passphraseless ssh. But my understanding is that setting it up that way means that if someone get ahold of the id_dsa file, they can then log in from any machine. ...
Greg Dougherty's user avatar
0 votes
1 answer
111 views

How do I configure my ssh-server, so that it can use the same user name to log in to different users, as github do?

We can use [email protected] and just provision the 'git' as the login name for github at work. How do I configure my ssh-server, so that it can use the same user name to log in to different users, just ...
lopssh's user avatar
  • 3
0 votes
3 answers
4k views

Security advantages of a SSH jumphost / jumpserver

I want to learn more about hardening Webservers and currently stopped on the topic Jumphost. So for me it seems like a Jumphost for example is connected to a webserver via VPN and the only server who ...
frankhammer's user avatar
0 votes
2 answers
2k views

What's the benefit of having a two-tier PKI heirarchy?

According to the way I read the literature, a two-tier PKI heirarchy with an offline root CA provides redundancy and an extra layer of security in case your subordinate CA's private key gets ...
Wes Sayeed's user avatar
  • 1,922
0 votes
1 answer
253 views

Local Linux server not accessible externally during an outgoing OpenVPN connection

I have a Debian Linux server which I use for file storage. It is in a local network with port forwarding configured in the router (openwrt). I sometimes connect the server to an OpenVPN server for ...
yzfr1's user avatar
  • 431
0 votes
2 answers
2k views

How to enable bash for ChrootDirectory users (ssh_config)? [closed]

I have added on the end of file "/etc/ssh/sshd_config" Match Group ftpusers ChrootDirectory /home/ftpusers/ PermitTunnel no AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no ...
iWizard's user avatar
  • 422
0 votes
1 answer
128 views

Create Linux user with no capabilities

How do I create a new user which has no capabilities? For instance, they should not be able to run any commands or view any directories (except for their home directory if necessary). The only ...
user1032531's user avatar
0 votes
2 answers
369 views

How to do SSH with -i option and bypassing password entry

Using ssh, I want to access Machine1 --> Machine2 Let's say Machine2 has IP address: 133.165.14.22. I have copied id_rsa.pub from Machine1 to Machine2 Then in Machine2 I have already did this: ...
neversaint's user avatar
0 votes
2 answers
89 views

How to make this connection?

I have 2 servers: server1 and server2. I can't use server1's 8080 port directly only throughout server2 Now I do port-forwarding in such way: ssh -4 -L 8080:server1:8080 user@server2 and I could ...
mystdeim's user avatar
  • 105
0 votes
1 answer
88 views

Security - I have tried to log in with my ssh key into the wrong address

I have tried to log in (SSH) into the wrong address, my AWS instance was off so I guess no-ip redirected to the old IP address. My private key was specified at putty configuration, is there any ...
Gus's user avatar
  • 163
0 votes
1 answer
7k views

Disconnected no supported authentication methods available

Yes, I'm aware questions like this already exist, and I've already checked quite a few out, but the methods were unable to help me. I am running CentOS 6 on my VPS. This error occurs when I try to log ...
Arraying's user avatar
0 votes
1 answer
667 views

How do I get the OpenSSH SFTP subsystem for the client to honor LogLevel settings?

When connecting to a server via SFTP, I can use -o to specify a LogLevel, like so: sftp -oLogLevel=DEBUG3 username@host This spits out a ton of debug information about the login process. However, ...
SineSwiper's user avatar
  • 2,638
0 votes
1 answer
875 views

Fail2Ban not rejecting banned IP?

I've got a new Ubuntu Server setup with OpenSSH access (on a custom port) and a Fail2Ban installation. Fail2Ban seems to be correctly banning IPs and adding them to the iptables, however once banned ...
Michael Hillman's user avatar
0 votes
1 answer
437 views

Updating php command on web hosting

I've tried to install a php application on a server, using php composer.phar install. At first all seamed well, except it said the php version was to low. A quick php -v told us, that the php version ...
wawa's user avatar
  • 103
0 votes
1 answer
2k views

allow ssh outgoing with iptables default policy as drop

Good day all My VPS allows incoming ssh connections as required (see rule), however attempting outgoing ssh connections fails to connect with $ ssh xyz.ddns.net ssh: connect to host xyz.ddns.net ...
CybeX's user avatar
  • 321
0 votes
1 answer
4k views

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config ...
d9k's user avatar
  • 123
0 votes
2 answers
3k views

useradd --disabled-password can't ssh using authorized keys

I might've done this wrong. I created a user with : sudo adduser --disabled-password userX And I've added a public key to /home/userX/.ssh/authorized_keys. But when I ssh into the account I get the ...
D.Mill's user avatar
  • 379
0 votes
3 answers
1k views

Proper way to send SSH commands to multiple clients with sudo?

I have created a very simple shell script to send SSH commands to multiple hosts. Right now I have copied my ssh id so I don't have to use a password to login to the servers. But if I want to do a apt-...
Daniel Guldberg Aaes's user avatar
0 votes
1 answer
1k views

Is fail2ban necessary? [closed]

I have disabled the root login, disabled the password authentication option, and blocked all ports except 22 and 80 for a linux virtual server I run. The only way to access the server is with a 4096 ...
user324908's user avatar
0 votes
2 answers
3k views

Changed /bin/sh to /bin/busybox for root, broke SSH access. How to fix it?

I made a silly mistake... I was playing around with busybox and used chsh to switch the root shell from /bin/sh to /bin/busybox which seems to have broken the SSH access. When I do: root@dev:~$ ssh ...
Craig van Tonder's user avatar
0 votes
1 answer
455 views

Using an HTTPS/SSL Certificate to establish the authenticity of an SSH session

I've just registered my website so people can accesses by HTTPS (and will be forced to, HSTS & redirects are part of configuration). It's set up with GitLab. I can access my repositories via ...
Sudrien's user avatar
0 votes
1 answer
181 views

users to connect SFTP server with openssh key [closed]

I want to be able to allow users to connect to my SFTP server with openssh key which I generated in keygen. How would I accomplish this?
sanam khan's user avatar
0 votes
3 answers
2k views

How to ssh and use a personal bashrc without getting disconnected

I would like to be able to ssh to a remote host and run some repetitive commands on it before continuing my work. I have been trying the following command with no luck: ssh [email protected] '...
user41183's user avatar
  • 143
0 votes
1 answer
841 views

Ansible, Vagrant, sudo and ssh-agent

So I've seen this question and added the Defaults env_keep+=SSH_AUTH_SOCK into my /etc/sudoers file but I am still unable to clone from github on my Vagrant box using sudo: true and sudo_user: <...
MattC's user avatar
  • 377
0 votes
1 answer
2k views

SSH tunnel to MySQL running on FreeBSD (Heidi SQL)

I'm trying to use a SSH tunnel to access a MySQL-server running on a FreeBSD 10.1 server. These attempts are done with Heidi SQL (http://www.heidisql.com/). The SSH daemon on the FreeBSD server does ...
Aknot's user avatar
  • 185
0 votes
1 answer
3k views

Why can't I ssh to the Ubuntu VM in azure?

I created a fresh VM with Ubuntu 14.04 image in windows azure. I'm trying to connect the VM with with ssh. But it showing something like. Can you help me to understand on what went wrong here? Here ...
user121212's user avatar
0 votes
1 answer
2k views

SSH and many other programs are not working after chmod -r 755 /etc [duplicate]

I have a new web-admin and he mistakenly ran chmod -r 755 /etc to try and disallow our shell users from reading any other files. As a result, SSH on our server does not work. How can we fix this?
arestifo's user avatar
0 votes
1 answer
128 views

The authenticity of the server when accessing it through a domain name instead of an IP

When I do ssh [email protected], I log into the server fine. However, if I do ssh [email protected], where example.com points to the same IP addrees, I get: The authenticity of host 'example....
Emanuil Rusev's user avatar
0 votes
1 answer
2k views

Amazonubuntu ec2 is not responding via ssh [closed]

It used to work but now it won't respond. ssh -i aws-niklas140428.pem [email protected] It does respond via HTTP though and I can restart it in the webGUI at aws.amazon.com How can I find the ...
Niklas Rosencrantz's user avatar
0 votes
1 answer
90 views

Web dev left, can't contact to him, how do I reset root password for ssh so I can access it?

Our lead tech (unprofessionally) left our project, we can't contact him, but I, as a semi-technical project manager have access to our server on Joyent. Our new dev needs to take a look at our running ...
ruckadub's user avatar
0 votes
1 answer
3k views

root accepts any password : how to change to a real password?

I have an old Linux system which can be accessed via a public IP address. When you connect to the SSH port you can login as root with any password. The only restriction is that the password needs to ...
Hrqls's user avatar
  • 133
0 votes
2 answers
5k views

start sshd with /usr/sbin/sshd in centos

I am new in linux but newest in Centos. using CentOS release 6.6 (Final) I can start ssh service via service sshd start and get this output Generating SSH2 RSA host key: ...
Montells's user avatar
  • 165
0 votes
1 answer
955 views

How to force an ssh tunnel (or a ProxyCommand) to use an existing master connection? [closed]

There are three machines A, B and C running linux. I have root access to machines A and B but not to C. A is my local machine and I want to connect to C. C is only reachable through ssh over VPN. I ...
Manuel's user avatar
  • 61
0 votes
1 answer
2k views

SFTP restrict users to a few directories

I run a game server and I have a few people that I want to give access too the server to help develop. I am trying to let them have access to only these directories /var/www/Update /root/gamed/config ...
tomirons's user avatar
  • 103
0 votes
1 answer
3k views

Setting up a chrooted SFTP user in a directory whose parent has group write permissions

I have a user who only has sftp privileges (no ssh) and who is chrooted in SFTP to /data/docker. /data (which is a separate drive) has 775 permissions and I'd like to keep it that way. However, when ...
Jakob Weisblat's user avatar
0 votes
2 answers
1k views

Can I limit my autoSSH Tunneling Speed with trickle and ssh config file option?

When I use only ~$ autossh site1 it work perfectly, but whit trickle the pameter site1 is considered as DNS Name instead of conf block. User@VM:~$ sudo trickle -d 10 -u 10 -- autossh site1 [sudo] ...
Alban's user avatar
  • 297
0 votes
2 answers
4k views

Forward SSH request to an External Server to an Internal Server [duplicate]

I have a VM config currently where I have 1 external IP pointing to a VM with an Nginx HTTP Reverse proxy serving HTTP Web Pages from several internal VMs without external IPs. I need a similar setup ...
Jacob Clark's user avatar
0 votes
2 answers
999 views

Is it possible to have multiple users on FreeDOS? For remote terminal use

Is there a way to support multiple users on FreeDos? I'm asking because I have an old application in clipper that runs on MS-DOS and I'd like to make it available over my LAN so that users could "ssh"...
Adabada's user avatar
  • 11
0 votes
1 answer
1k views

Can a user be excluded from /etc/profile.d scripts?

I am having a problem using Rsync/SSH with a specific user for Amanda backups on a server. rsync -e 'ssh -i /var/lib/amanda/.ssh/id_rsa_amdump' -az otherserver:/dir/to/copy /copy/dir I have noticed ...
에이바's user avatar
  • 662

1
114 115
116
117 118
180