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
3answers
516 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
29 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
64 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
66 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
67 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
41 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
78 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
70 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
235 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
46 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
152 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
93 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
96 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
49 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
126 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
71 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
46 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
36 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
41 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
23 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
43 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
37 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
32 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
53 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
79 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
85 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
32 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
44 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
100 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
61 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
89 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
121 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
33 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
60 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
1answer
79 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
69 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
3k 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
22 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
235 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
28 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 ...
1
vote
1answer
58 views

Why won't my SSH keys forward properly?

I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this: localhost$ scp ~/.ssh/id_rsa myuser@myhost.something.something.com:. ...
7
votes
2answers
75 views

Same RSA key on multiple PCs

Can I use my RSA private key on multiple computers i.e. my desktop and laptop. Or do I have to create a unique key for each computer I own, and add their respective public keys to necessary servers/...
1
vote
1answer
66 views

How can I get Azure to use an SSH key when doing a node.js deploy via git?

I'm deploying a node.js app to Azure Web Services using git from my local machine via: git push azure master One of our npm packages is a private repo hosted on BitBucket. Without Azure having an SSH ...
0
votes
0answers
53 views

RDP over SSH for Windows 8/10 to use Jump Host

is anybody aware of a way to tunnel the Windows RDP client over SSH on Windows 8/10 to access the servers in the separate network? The scenario mostly is: SSH -> SSH gateway Jump Host -> Hosting ...