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)

2
votes
2answers
25 views

How much protection is provided for my remote centos vps by using certificate-only root login

I have two leased centos servers, one to run mysql for backends to the web and mail server on the other, as well as data from my android apps. I am only planning to give access to the data server if ...
6
votes
1answer
131 views

SFTP server: better to use SSH internal sftp subsystem or ProFTPD plugin?

I've been tasked to install a new SFTP server. Per-se, this is a very simple operation: simply using the internal-sftp role of the ubiquitous SSH service (with chrooting) is sufficient to have a ...
2
votes
1answer
39 views

How to define SSH port for target server with znapzendsetup

I have a firewalled server to send data to over ssh on public network, but the SSH port is not the default 22. How do I configure the port to znapzendzetup? For mbuffer setting the port is not an ...
1
vote
1answer
34 views

Google Cloud Platform: ssh from VM_1 in project_A to VM_2 in project_B

I am trying to connect virtual machine VM_1 in project_A to virtual machine VM_2 in project_B. Bot are on Debian Linux. Steps I did: On VM_1 Project_A Generated private and public keys ssh-keygen -...
1
vote
1answer
30 views

ssh and scp redirects to my own server

recently I've installed a new server, and got a lot of problems with the ssh access. Now, when I try to scp from server A ( old, Debian 7.1 ) to B ( new, Debian 7.1 ), or when I try to ssh from A to ...
0
votes
1answer
196 views

Can't establish SSH connection even on localhost

Having problems getting a simple SSH connection to even localhost on my Ubuntu 15.10. Server was set up many months ago and was able to create access for SSH with keys, but cannot duplicate that ...
1
vote
1answer
232 views

OpenSSH adds <IPv6>%2 to known_hosts

When I connect to a CentOS 7 host with IPv6 my ssh client always adds <IPv6 host addr>%2 to known_hosts even though the host key for this host (with the host's IPv6 address) is already present ...
-4
votes
3answers
397 views

How can I copy a file from Linux to Windows using ssh commands [closed]

I have a ftp server on my Windows server and a Linux VM running on hyper-v, as a part of automation I need to copy a file from Linux to Windows and do some other task using the information from the ...
0
votes
1answer
27 views

Is it possible to prevent, or at least detect, SSH session re-use?

I have been taking advantage of session reuse to speed up my connections to various production servers by setting up my ~/.ssh/config file like so: Host server.company.org ControlMaster auto ...
3
votes
3answers
62 views

Linux ssh client log all commands

I'm going to setup a Linux console box for login to Cisco devices via ssh only from that Linux machine. How I can setup ssh client on Linux to log all commands applied to Cisco devices?
5
votes
1answer
60 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
27 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 /Users/josh/...
0
votes
0answers
60 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
39 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
75 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
64 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 ...
0
votes
1answer
174 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
41 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 ...
4
votes
1answer
106 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
90 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 :- $ ssh-...
1
vote
1answer
92 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 ...
0
votes
0answers
39 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, ...
0
votes
0answers
101 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
65 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
36 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
34 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 defined):...
0
votes
1answer
37 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
15 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
21 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
42 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 ...
0
votes
1answer
29 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
26 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
47 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
69 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
75 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
21 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
24 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 http://www.openssh.com/manual....
0
votes
0answers
27 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 ...
0
votes
2answers
40 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 ...
0
votes
1answer
86 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
68 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
60 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
29 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 ...
0
votes
1answer
66 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
108 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
31 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
57 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?
2
votes
0answers
52 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
64 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
2k 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 ...