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.

learn more… | top users | synonyms (2)

4
votes
1answer
44 views

OpenNMS check if service is running on remote server using SSH

I have an OpenNMS system configured and up and running. I have a few Linux (debian) servers and I need to monitor if a specific service is running on them. This must be done using only ssh access. No ...
1
vote
1answer
24 views

ssh-add -l multiple entry for the same private key

192-168-1-103:~ josh$ ssh-add -l 4096 SHA256:4fFdwJ71VIH8rucL9y/3U7jxjctaFcAKmdQZPEqR0Y4 /Users/josh/.ssh/id_rsa (RSA) 4096 SHA256:41kNx5H5yDf1mv6ZNS5W5nSI77WU5qhajLYHvUe6/1A ...
0
votes
0answers
27 views

KDE 5 headless display : sddm not starting

I installed Kubuntu 15.10 on one of my servers, because I don't want always to the work with a shell and vi. Now for administration purposes I want to connect to the server with a ssh shell and start ...
1
vote
1answer
32 views

How to secure a 'public' sftp?

I have a server which enables some users of my services to upload files using SFTP. When I talk about users, I can neither be sure who they are nor how many have access. I have set up the access as ...
0
votes
0answers
55 views

ssh login timed out after enabling the ufw firewall ubuntu server

I followed digital ocean tutorial to enable the firewall in my ubuntu server. The steps I performed is: 1> change the port no to some other no. (8338) 2> enable firewall using sudo ufw allow ...
0
votes
1answer
38 views

Standard user login to Bitvise SSH server not working

I have a Windows 2008 R2 box with Bitvise SSH Server 6.47 running. The Windows box is stand alone. It is not part of a domain. My issue is that Bitvise will not allow a "Standard user" to login via ...
-1
votes
1answer
54 views

Can connect via SSH - but not via SFTP? Exit status 127

Unfortunately I can not connect via sftp to my VPS: This is my sshd_config: # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we ...
2
votes
2answers
37 views

sshd_config how to allow one user to have full unrestricted sftp and allow ssh

I changed sshd_config to jail users within specific group into their home directory. changed subsystem to sftp internal-sftp and used forcecommand: internal-sftp However, this prevented the admin ...
-1
votes
0answers
8 views

SSH tunnel with different ssh port [migrated]

I am trying to make a ssh tunnel connection to a remote server that has different SSH port. My PC hostname: fooserver.com IP address: 10.25.0.186 SSH port: 63354 My Remote PC hostname: ...
4
votes
1answer
50 views

reliable systemd service for autossh

I try to create a reliable systemd service for autossh. The service works, but if the host-keys changes, the service is in state ok (running). I want it to be in state "failed" if the tunnel does ...
1
vote
2answers
85 views

Logging In as a root user to a remote machine using SSH

My problem is similar to this one , I am trying to automate the portion where I can access the remote machine and run a command as super user. It works fine till it logs-in , like from here :- $ ...
1
vote
1answer
80 views

Server is often slow to serve webpages and takes long to ssh into

First of all, I am in no way a professional running a server for about two years from home, so keep in mind that the cause to my problems can be very basic and with a simple solution. My problem is ...
-1
votes
0answers
21 views

Kerberos-based SSH login requires local user account

I've recently set up a linux system (Debian-Jesse) which has joined an MS-Based Kerberos domain and been set up to allow Kerberos-based authentication for remote access. The only issue is, ...
-1
votes
0answers
45 views

PHP not loading ssh2 extension after successful installation

I was getting this error, when running my PHP script to download files using SFTP: PHP Fatal error: Call to undefined function ssh2_connect() I installed the ssh2 PECL extension by running the ...
0
votes
0answers
4 views

How can a command in a pipe read from a keyboard? [migrated]

I randomly tried to execute the following command in bash1 cat /some/file | ssh user@machine 'cat >/destination/file There are no keys installed on the remote machine, so the only way to ...
0
votes
0answers
30 views

Forward ssh connections to docker container by hostname

I have gotten into a very specific situation and although there are other ways to do this, I've kinda gotten obsessed with this and would like to find out a way to do it exactly like this: Background ...
1
vote
0answers
57 views

SSH `-b` option in PuTTY/KiTTY

The openSSH SSH client has the -b option to bind to a specific address: -b bind_address Use bind_address on the local machine as the source address of the connection. Only useful on systems with more ...
0
votes
0answers
18 views

Apt-Dater: sorry, you must have a tty to run sudo

Unfortunately I can not connect to a host using apt-dater. The error is: Pseudo-terminal will not be allocated because stdin is not a terminal. ADPROTO: 0.7 LSBREL: CentOS|7.2.1511|Core VIRT: ...
1
vote
0answers
22 views

Command after apt-get install is not executing in script

I'm writing a script which is meant to initially set up my Droplet. In the script, I'm opening ssh connection with my Ubuntu 14.04 server as follows (with USER and REMOTE variables previously ...
0
votes
1answer
24 views

SSH connect to FreeBSD9 suddenly started to freeze randomly

I have a KVM FreeBSD 9.2 box for a long time. 5 days ago I had a 2h ssh incoming session on this box with no freezes. No system/soft updates or significant system changes were made. Today I can't ...
0
votes
0answers
14 views

SSH not logging failed key authenticated logins from valid users [duplicate]

For some reason OpenSSH is not logging the failed logins in /var/log/btmp (lastb) of valid users when I am authenticating with an SSH Key. On the other hand It logs failed and successfull logins from ...
0
votes
0answers
17 views

ssh: clicking enter once results in enter twice

I'm running into a strange issue accessing a server via SSH using Putty: whenever I click "Enter" it acts like I clicked it twice. It's very consistent -- definitely not a keyboard issue -- and only ...
-1
votes
1answer
31 views

Unable to use SFTP via FileZilla?

I created a Linux VM on Microsoft Azure via this blog Creating secure Linux VMs in Azure with SSH key pairs In summary it simply says: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ...
-2
votes
0answers
41 views

does 22 port should open in firewall when internal user want to use services on 22 port

user in internal network want to communicate outside via 22 port to access a particular URL. do i need to open 22 port in firewall? is there any solution to fix this issue with altering security ...
0
votes
1answer
15 views

Cannot login to ssh - stdin: is not a tty

FIXED If you have seen this in the login screen of your server... stdin: is not a tty ...you know the trouble. Well. I've had the exact same problem on my root server. I tried several things to ...
0
votes
0answers
19 views

“-bash: fork: retry: …” on SSH connection

When I'm connecting via ssh to my useraccount of my server, I'm getting the following error: -bash: fork: retry: No child processes -bash: fork: Resource temporarily unavailable Does anyone ...
0
votes
0answers
26 views

vpn-over-ssh ipv6 tunnel getting permission denied connecting to tcp

Using my script, I can establish a working vpn for ipv4 and even able to ping ipv6 addresses. However, trying to connect to an ipv6 address I get "permission denied". ➜ ping -6 ipv6.google.com -c1 ...
1
vote
1answer
37 views

How to create chroot'ed SFTP access on an Archlinux Server?

I've followed this instructions on the ArchWiki and GeekStuff to setup an user which can only access the server via SFTP (SSH) but without Shell (/bin/false) in a chrooted environment of his home dir. ...
-7
votes
1answer
63 views

We want capture all login user activity and keystroke [closed]

We use CentOS 6/7 we have use script which user are stop that process. So we don't get to see any log from such users. We want capture following: Timestamp when the user logs in to the OS Timestamp ...
1
vote
1answer
17 views

how to restrict ssh-agent to trusted applications only?

Is there a way to prevent an application from using my ssh-agent keys? I started using an application that uses ssh to access my remote server (possibly for a legitimate reason, according to the ...
-2
votes
1answer
20 views

How to keep authorized_keys in a custom folder

I would like to keep authorized_keys of OpenSSH for Windows in a custom folder and not in a C:\Users\SomeUserName folder. Is it possible? The manual page does not help ...
0
votes
0answers
15 views

CentOS 7 Firewalld crashing server when trying to allow port for mail server

So I'm working on setting up a mail server on a CentOS 7. I'm following this tutorial: http://www.krizna.com/centos/setup-mail-server-centos-7/#install When I reach step 10 at adding firewall rules ...
-1
votes
0answers
18 views

Cannot ssh from host to guest os in Virtual Box [migrated]

I have a windows machine with virtual box installed. I have ubuntu VM within the virtual box. If I setup my vm's network to use NAT, and setup port forwarding to forward from my localhost to the ...
0
votes
2answers
29 views

SSH Tunnel to Memcached not working

I have created a SSH Tunnel to my memcached server as follows: ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211 When i do netstat on my machine i get the following: So far looks good. tcp ...
-2
votes
0answers
28 views

Google Cloud - Can't Connect via SSH

So all of a sudden my instance on google cloud can't connect via SSH. I checked the serial console and this seems to be what i get: Apr 3 06:00:37 instance-3 google: No startup script found in ...
0
votes
1answer
47 views

Ubuntu OS recovery – accidentally deleted ld-linux-x86-64.so.2 from /lib64 folder in Ubuntu 14.04

I was remotely working on the machine with SSH but after deleting the ld-linux-x86-64.so.2 file by mistake I closed the ssh session and now I cannot login because it gives me following error: Welcome ...
-1
votes
1answer
66 views

Setting up SSH with the correct user rights [closed]

I want to setup my SSH connection correctly. As many tutorials told me, it is not recommended to use the root account of Ubuntu server. So I would rather use my standard account "Simon" to upload ...
0
votes
2answers
55 views

Is there a way to unbreak this egg?

We need to recover from overwriting the authorized_keys files on a set of servers. Remote, embedded Linux devices were configured to ssh into Ubuntu 14.04 servers autonomously. We do not have record ...
0
votes
0answers
27 views

SSH unavailable system booting

I got a weird problem with a server from a hosting company. Sadly they don't give you IPMI/KVM access so all I got is the option to reinstall or boot up the server with their recovery image. I'm ...
-1
votes
0answers
31 views

Why can I connect with su but can't connect from login prompt?

I am on a system where we have a captive application account set up. Let's call it "myapp". Things seem to be set up so that if I log in to my own personal account (call it "jdoe"), I am able to ...
0
votes
1answer
33 views

How to configure TightVNC to accept connections from localhost only

I just implemented tunneling TightVNC + OpenSSH for MS Windows successfully. The last thing I have to configure is to deny any remote connections to TightVNC Server and allow local connections ...
1
vote
1answer
78 views

Connection SSH port 22 via domain name but not public ip address

I have a Draytek router configured to port forward SSH connections to an internal server from specific ip addresses only. Clients and myself can connect externally successfully except one who cannot ...
0
votes
0answers
21 views

SSH to OpenVPN Connected System AND Tunnel through VPN

I want to SSH to a Docker system running Debian (latest), with OpenSSH, and OpenVPN installed. I also want to create a Dynamic forward (SOCKS proxy), and I want it route through the VPN connection as ...
-9
votes
1answer
49 views

I have to wait several minutes to ssh my server after reboot [closed]

I have to wait at least 5 minutes after the server "finished" its reboot to ssh it, otherwise i get "connection refused". It's an armv7 processor with Archlinux. What can be the culprit?
1
vote
0answers
34 views

How to enable ssh on startup in opensuse

My experience with Linux is limited and as part of a project, I ordered a Linux dedicated server. This is an unmanaged server with OpenSuSE 13.2. When I try to ssh into the server, I get a connection ...
0
votes
0answers
52 views

remote execution of commands using sudo /usr/bin/ssh

I have the following sudoers file in /etc/sudoers.d: Cmnd_Alias GETCONFIGFILES = /usr/bin/ssh servername.mydomain.com -p 1022 'cat /path/textfile.txt' User_Alias TOMCATUSER1 = localuser TOMCATUSER1 ...
0
votes
1answer
298 views

Ansible ping fails - host unreachable

I just started learning the basics of Ansible, and looked up why I am getting the above error but can't figure out how to sort it out. This is the trace: Me-Air:ansible me$ ansible all -m ping -vvv ...
0
votes
1answer
21 views

Can I restrict openssh to only allow public keys with pass phrases [duplicate]

Is it possible to configure ssh using PubkeyAuthentication yes but only allowing pub/private key pairs with a passphrases?
3
votes
1answer
111 views

ssh_dispatch_run_fatal: Connection to x.x.x.x port 22: key type does not match

I'm running into a bizarre error with SSH to a Sonicwall device which I'm unable to resolve. The issue only seem to occur on OS X (10.11)'s built in SSH. I can successfully ssh to the firewall from ...
0
votes
1answer
27 views

Reverse ssh for location distributed system behind firewall

We have multiple machines located in different area behind firewall which don't have Static IP and can't be accessible from the outside. We would like to access those machines but are wondering what ...