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)

0
votes
0answers
48 views

Configure SFTP with OpenSSH and an AWS S3 Bucket mounted via S3FS on Amazon EC2

How do I allow multiple SFTP Users with S3FS and OpenSSH? Everything works, except SFTP Users don't have permission to write to their Chrooted Home Directory: remote open("/some_file"): Permission ...
-2
votes
1answer
34 views

Unable to SSH to AWS on home network?

I am not exactly sure if this is the right place. I have an AWS EC2 instance which I am trying to access using putty on windows 7. I have been doing it using my phone hotspot successfully. But it ...
1
vote
1answer
36 views

Remote ssh login causes local login to freeze?

I have a Cent OS 7 server running. I log into it from a local-network laptop using 'ssh -X', which works just fine. I go down to the server room and connect the rack monitor to the server, the welcome ...
1
vote
3answers
104 views

scp to copy file to remote server fails because of permissions

I think my fundamental problem is that I don't fully understand how ssh / scp works. But I don't what to google to try to read up on my question. Problem Description I have created a bash script ...
0
votes
1answer
36 views

Unison / file syncing between servers without using root account

I have setup 3 servers one with a load balancer and the other 2 will host the websites files and I have a replicated MySQL database on both too. I have installed ispconfig on both and it's set to ...
0
votes
0answers
25 views

debug1: read_passphrase: can't open /dev/tty: No such device or address

I'm currently building an app based on Heroku and PHP7. part of my app is to connect to other servers. for the destination server I have gotten an DSA private key with passphrase. since i'm on PHP7 I ...
0
votes
2answers
40 views

ssh always tries to use a wrong rsa key

When I try to ssh to a remote computer I get the following error: Received disconnect from RemoteIPAddress: 2: Too many authentication failures for UserNameA However until recently this used to ...
2
votes
1answer
103 views

cygwin sshd “getnameinfo failed”

I run an Openssh sshd service from Cygwin. When an RSA connection is established: $ ssh Administrator@ZETA Last login: Wed May 11 13:58:50 2016 from 10.1.1.140 -- there is no error message. ...
0
votes
1answer
27 views

Execute postgres function on server from local

I've a postgres database on server. There is an upsert function which takes a file as an input. Is there any way to execute the upsert function from my local without having to scp the file to server ...
0
votes
1answer
66 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 ...
0
votes
1answer
29 views

Changing the ssh passphrase on a private key has no effect

I had a not protected by passphrase ssh key which I use to connect with a server. Now I want to add a passphrase to the key, so I've done: ssh-keygen -p and added a new passphrase: Enter file in ...
0
votes
0answers
40 views

Can't ssh using dynamically generated host

I have a shell script that runs a python script to return an AWS IP and then is supposed to ssh into that IP. Simple: DNS=$(python ssh_into_master.py) ssh $DNS It runs the command as it's supposed ...
1
vote
1answer
40 views

ssh gatekeeper script and system calls

I'm using the openssh gatekeeper script from calomel.org to make a semblance of two-factor authentication. I've tried to use a curl to the localhost to send a randomly generated string via text ...
-5
votes
1answer
51 views

Cannot ssh after rebooting VPS [closed]

I reboot my VPS just now then when I logged in via ssh it says permission denied after inputting my password. I have an OVH linux VPS and I can log into it using KVM from the panel. I didn't set any ...
1
vote
2answers
42 views

How to set SSH config to grab part of ssh hostname and use as variable?

I'm SSH'ing into multiple datacenters that are setup identically. Each datacenter has a jumpbox, and behind that there's access to various db servers etc. It's a pain to manually specify entries for ...
0
votes
1answer
30 views

enable to access public dns in browser amazon aws

I am a newbie here in this server and networking things. I have signed up in amazon aws and went through some basic documentations. There I could create security groups, instance, and web servers. I ...
-1
votes
2answers
153 views

Restore file permission on CentOS 7

I managed to messed up server permissions on entire server chown root:root -R / chmod 777 -R / How to fix it? I can't login as root using terminal on that machine it show error "Invalid password" ...
0
votes
2answers
83 views

Getting SHA1 Digest of SSH Public Key

It seems like this should be easy. I run "ssh-keygen -l -f " (the default seems to be SHA1). All of the examples show it printing the hex-formatted digest with a little extra, harmless information. ...
1
vote
1answer
38 views

Can an (Open)SSH login name have more than 30 characters?

I have to login via SSH to a web hosting server. Unfortunately the login name equals the domain having more than 30 characters. OpenSSH client on debian based linux system cuts the login name to a ...
0
votes
1answer
62 views

Access with ssh only password without publickey with virtualbox

I tried to setup the ssh-server without publickey , with openssh-server 6.7p1-5 changed sshd_config RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes Restart ssh service ...
2
votes
1answer
31 views

Vim hangs on one specific file?

My putty session keeps on hanging when I'm in the middle of editing a file in vim. This has happened three times this morning. Hopefully it's nothing, just a glitch in the matrix somewhere, but I ...
1
vote
0answers
44 views

should I upgrade Freenas security ?

I have a freenas server for almost a year now and this is the 3th time within the month that I've received a security email with allot of failed ssh log in attempts that aren't from me or anyone I ...
0
votes
0answers
18 views

What settings/permissions are required to grant IAM user ssh access to opswork instance?

In opsworks I have imported the user and marked them to have ssh/rdp access. However, I am unable to ssh into the instance once it is up as that user. And when I access the instance as the root user ...
0
votes
0answers
15 views

How do you git archive a branch using gzip with highest compression level?

I'm trying to git archive a branch using gzip with the highest level compression (9) but it seems to not compress at that level. Here is my command: git -C /home/user/example.com/ archive --format ...
0
votes
1answer
30 views

How do diagnose laggy X11 applications running via ssh forwarding?

I am running an X11 application on a RHEL machine on my Windows system using Xming and X11 forwarding over SSH. The responsiveness seems terrible. A second between keystrokes and mouse clicks, etc. ...
0
votes
0answers
38 views

How can allow an ssh connection only over vpn

I install OpenVPN on my server following this guide --> https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04 I also setup a firewall with ufw where I add ...
0
votes
3answers
93 views

IP forwarding on Linux

I have three machines Source Machine Destination Machine - IP 10.20.30.40 Intermediate Machine - Host server1.test.com Source machine has SSH access to Intermediate machine and Intermediate machine ...
0
votes
1answer
40 views

Firewall rules for ssh, ftp and webapps

I'm running a small cluster with Centos 7 and want the following rules for firewall. Have ssh access from anywhere (i'm going to further configure that from /etc/ssh/sshd_config) Have ftp access to ...
1
vote
0answers
39 views

Systemd/ssh: Cannot allocate memory

I have a host (Ubuntu 14.04.4 LTS 64 bit, kernel 3.13.0-85-generic) that has a lot of concurrent SSH connections. SSH logins have started to fail recently, and the log says: sshd[26057]: pam_systemd(...
2
votes
1answer
152 views

ssh “incorrect signature” while connecting to server

I have a server that I usually connect to from multiple laptops, some FC22, FC23, or ubuntu. I installed a brand new laptop FC23, added the relevant keys in authorized_keys, etc: [mathieu@xps13 code]$...
0
votes
1answer
43 views

Is there any way to log entered password from ssh?

My server is under attack and some one try to run brute force attack on my ssh port, I know that I can block the IPs which are illegal,with iptables,fail2ban, ... but I want to know which password ...
2
votes
1answer
80 views

Forward SSH to another Host

I have an ubuntu server which is visible from internet, let's call it "jumper". And this server has this name actually because I need that whenever an user SSH this server, it jumps (or forward or ...
1
vote
0answers
45 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:\...
1
vote
1answer
25 views

how to configure `sshd_config` so fail2ban can see bots

I've updated my sshd_config to be more strict against bots. namely: only keys are allowed, except for a few specified users on specific ips MaxAuthTries = 1 no root login This has been both good ...
1
vote
2answers
60 views

ssh enter passphrase one line

I want to execute a command via ssh but my server is using passphrase, I want to make one-line only without asking passphrase. ~# ssh -t root@dev5 'echo "tes" ; bash' Enter passphrase for key '/home/...
0
votes
0answers
57 views

Remote port forwarding via ssh tunnel fails

I am trying to do some remote port forwarding via a ssh tunnel on my NAS (NAS4Free running FreeBSD), which is behind a firewall. I have added gateway_enable="YES" in /etc/rc.conf and also net.inet.ip....
0
votes
2answers
36 views

Tool for diagnosis/proof of network connectivity issues

I am in a shared workspace and am trying to communicate the issues I am having with the internet performance to the workspace provider. The main issue I have other than slowness is momentary ...
2
votes
2answers
391 views

How can I set the root password in a docker container from a script?

I have a script that runs on the host and creates/starts/stops a docker container. I'd like the script to change the password of the root user within the container. Since the container is an ssh ...
2
votes
1answer
50 views

Debian : SSH port attack continues, cannot change port coz of provider, suggestions?

We have a debian server, which is running our Tomcat hosted applications and we have installed Fail2Ban on it. Everyday morning I see that a lot of people on the internet try to attack the server. ...
0
votes
0answers
29 views

Can access server via SSH/FTP but other protocols won't work

I followed this guide to setup an "Upside-Down Ternet." Everything was fine up until the part where I configured IPTABLES then I lost SSH connection. Now I expected that because I'm messing with ...
2
votes
0answers
48 views

Can't find users logged in with notty via the who command

I was curious if anyone had any ideas why when I run who and who --all, I still cannot see users logged in under notty? See below: [cbennett@lstn ~]$ who --all system boot 2016-04-25 09:...
-1
votes
1answer
24 views

Setting up an ssh authentication server

I have some 30 Media Temple grid servers and I need to manage the access of 15 or so developers to those servers. Is it possible, and more importantly secure, to setup a server who's only job is to ...
0
votes
1answer
46 views

Remote SSH Tunnel external access

I've setup a remote ssh tunnel from my Raspberry Pi, which is behind a NAT, to my vServer using the follow command: ssh -ngNTfR 62.75.145.118:2209:localhost:22 root@unkn0wn3d.com 62.75.145.118 is ...
0
votes
1answer
18 views

Which ssh starup script is invoked by ubuntu?

I am trying to run two sshd processes, one for admin and one for sftp. Ubuntu 14.04 on digital ocean has both upstart in '/etc/init/ssh' and init.d in '/etc/init.d/ssh`. Is this just digitalocean or ...
1
vote
1answer
33 views

SSH'ing with force pseudo-tty allocation doesn't print my MOTD

I know that -t option in ssh allocate pseudo-tty. I'm using -t to "jump" to different directory on login, something like this: ssh -t my-server "cd /path/to/my/directory; bash --login". Why if I log ...
3
votes
1answer
25 views

copying files over multiple ssh tunnels

I have an awkward situation in which I need to link to a machine through multiple tunnels. Details why below, but this command works for sshing in to server2: ssh -A -t username1@portal1.host1.org ...
0
votes
0answers
28 views

Webserver always too slow in AWS EC2 instance

I started a simple python server on port 4444 in one of my ec2 instance.and tried to access it by curl. It takes more than 5 seconds for server to respond. Below is the tcpdump output on port 4444 ...
1
vote
0answers
33 views

Why my profile looks for /usr/local/etc/profile.global (NIS)

My Ubuntu ID is manged by NIS/yellowpage. For some reason, when I log in, I'm getting this message. cat@local:~$ ssh catserver cat@catserver's password: Welcome to Ubuntu 15.10 (GNU/Linux 4.2.0-25-...
1
vote
0answers
70 views

Periodical changes in Remote Host Identification (SSH) on CentOS 6

I have this following error when I tried to connect using SSH: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@...
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 ...