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
3answers
74 views

Why is rsnapshot claiming source directory doesn't exist?

I'm trying to set up a backup system using rsnapshot which will copy files from a remote location into a local one. I've got rsnapshot set up, as far as I can see correctly, but when I run rsnapshot ...
0
votes
2answers
6 views

Setting up emergency console access with xen

On Gandi (or other providers) you can activate an emergency console to your VM. It binds a SSH channel to a temporary IP and port. I have my own server running on xen. I would like to implement an ...
2
votes
3answers
966 views

Setting up a chroot sftp on debian server

I'm trying to allow a user "user" to access my server by either sftp or ssh. I want to jail them into a directory with chroot. I read the instructions here however it does not work. I did the ...
1
vote
2answers
138 views

Safety of sshpass and SFTP to dynamic host

I have a server with dedicated IP address A and a server with dynamic IP address B (routing via no-ip.org). A uploads a backup to B via sshpass: export SSHPASS=*** sshpass -e sftp **@** << ! ...
2
votes
1answer
43 views

cannot login via ssh

Can not login to SLES server via ssh as user1. At the same time I can login as root user without any problem. Authentication method is password based. In /etc/ssh/sshd_config I have ...
0
votes
3answers
545 views

Stunnel multiple ports through the same Port

I'm looking for some help regarding an stunnel configuration I'm working on. Basically I want to have a DMZ machine accept inbound connections to port 80 and 110, and then forward them through my ...
0
votes
0answers
23 views

What could cause SSH to reject a valid certificate until a reboot

I'm trying to track down a strange problem in my CoreOS on Azure provisioning script. If I use sshfs or rsync via ssh to copy files across and once its done ssh into the same box to execute a script ...
1
vote
3answers
219 views

Username based SSH proxy

I'm trying to mux between two ssh servers based on incoming username i.e. ssh user1@testserver will go to one sshd instance and user2@testserver goes to another. Can this be done?
0
votes
1answer
18 views

NPS and RHEL ssh configuration

We have setup windows NPS and RHEL radius client using pam_radius module from freeradius.org for ssh. But on a linux client I see the error pam_radius_auth: Got RADIUS response code 3 in ...
0
votes
2answers
29 views

OpenSSH: allow users with writeable HOME to use publick key authentication

On a local workstation I need to have a handful of users to be able to freely write in each other $HOME. I KNOW this is a security breach and, in the specific situation, I do not care at all. I have ...
0
votes
0answers
18 views

Trouble figuring out a fail2ban log error message: “iptables -n -L INPUT | grep -q 'fail2ban-SSH[ \t]' returned 100”

Here is my jail.local rule for ssh: [ssh-iptables] enabled = true filter = sshd action = iptables[name=SSH, port=ssh, protocol=tcp] logpath = /var/log/messages maxretry = 5 Here is what my ...
0
votes
2answers
45 views

GNU screen detached cannot write to file after ssh logout

I am ssh-ing into a Linux cluster that uses an AFS home directory. I am trying to use GNU screen to run a long-running program in a detached screen. If I remain logged in the program executes ...
0
votes
2answers
45 views

Connection established. Still ssh login issue to ubuntu server on ec2 instance

I am not able to login to my Server (ec2 instance). Before this I was able to login. No changes has been made to server or Security groups ! please help me out ! ashish@ashishk:~/MyScripts$ ...
0
votes
1answer
2k views

haproxy transparent mode on 14.04

As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy ...
2
votes
1answer
2k views

Cannot connect to Openstack Instance via horizon, but SSH works?

I've got an OpenStack deployment running inside a VM for testing purposes. My setup is as follows: Host Ubuntu x64 with Virtualbox -> Guest Ubuntu x64 with OpenStack -> Ubuntu X64 Server Test ...
0
votes
2answers
51 views

SSH works but tunneling or SFTP doesn't. Why?

since 2014 I've got a server from SoYouStart, with Centos 7. It worked perfectly, but now I had to install again the OS. Now I'm configuring all the services to work again. I need to connect to the ...
0
votes
0answers
11 views

How ro pass Environment variable to Rundeck

I want to run a rundeck job. Would like to pass few environment variable from the node as well to the runDeck job during the run time. How to pass environment variable to rundeck? Thanks in advance
3
votes
3answers
2k views

CYGWin and sshd. Accepts authentication, but won't connect

Everything I find relating to this is the "ssh-exchange-identification:" error. This doesn't happen for me. I get two lines: Connection to localhost closed by remote host. Connection to localhost ...
4
votes
2answers
7k views

Can't ssh as tty-less user

I am trying to run a single command by invoking ssh (using key authentication) from a user which does not have a tty (the user my apache server is running as) and keep getting the following result: ...
0
votes
0answers
12 views

How to setup web UI to view Master Spark Node from Host Machine

I think the solution is to port forward twice, but I am unable to ssh into the master (source) machine: How do I view the Spark web UI? I am following this tutorial: ...
0
votes
1answer
934 views

Cannot SSH to Azure Linux VM from terminal

ssh azureuser@xxx.cloudapp.net : 22 when I connect and enter the password I created, then it just goes back to the local prompt and does not actually show the remote prompt. I'm thinking I need to ...
1
vote
1answer
73 views

WHM - add another user account via SSH

I'm working for a crowd that have 'misplaced' the password for their WHM root login but I'm able to SSH to the server using the key file they've provided. I CAN'T change the password for root as they ...
4
votes
1answer
1k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...
3
votes
1answer
44 views

How many SSH private key to setup for multiple servers?

The general process is to generate a pair of public and private keys and upload the public key to the server for SSH connection. Then, if I have to manage a large amount of servers, am I supposed to: ...
4
votes
5answers
5k views

Is there a way to avoid SSH typing delay?

Can I tell SSH to send the data only after pressing enter or tab, and not after each individual keypress?
0
votes
1answer
219 views

SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent

Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in ...
2
votes
1answer
21 views

How configure environment variable with AcceptEnv

In /etc/ssh/sshd_config, there is an option called AcceptEnv that allows the ssh client to send environment variables. I need to be able to send a large number of environment variables, how can i do ...
-1
votes
0answers
16 views

SSH gateway forward based on username [duplicate]

We want to use NAT to save public IP addresses. To gain ssh access to the virtual machine with an internal IP address we want to use an SSH gateway to forward sessions to the right server based on its ...
1
vote
0answers
17 views

Complete full virtualmin setup from command line

I'm working on adding a feature to a suite of tools my clients use that will allow them to enter the API key of their DO account, and easily create DO droplets with Virtualmin on them, and setup and ...
0
votes
2answers
109 views

Tunnel SSH “Client -> Firewall -> Server1 -> Server1.2”

I need to make a tunnel from a client box to a server. The problem is that there are 2 boxes between them: CLIENT --- FIREWALL ---{ SERVER1 --- SERVER1.2 } CLIENT ============================= ...
2
votes
2answers
29 views

Restrict access to .ssh folder over network shares

I run a small server running Ubuntu Server 14.04 and have just noticed that the .ssh folder in the users home directory is accessible via SMB and NFS. The SMB and NFS are both secured, however I ...
-2
votes
0answers
21 views

How to run a script on a remote machine using the screen command and ssh? [migrated]

I'd like to run on a list of servers and run remotely a script while using screen. Manually, I'd do: screen -RD ./run_script and manually remotely I'd do: ssh root@server "screen -RD && ...
0
votes
0answers
10 views

kdc server and admin server and client in same machine [closed]

I am learning the kerberos using the MIT version in UBUNTU 14.04. I haven't any virtual machines and other pc's and I haven]t any domain name[realm name]. Now my goal is to check the functionality of ...
0
votes
2answers
2k views

Unable to ssh EC2 using password - “Disconnected: No supported authentication methods available (server sent: publickey)”

I have followed the following steps https://coderwall.com/p/j5nk9w This is what I did 1) $ sudo useradd -s /bin/bash -m -d /home/newuser -g root newuser Entered the Password for the newuser 2)$ ...
2
votes
4answers
10k views

How to move directory from one server to other?

I have SSH access to the both servers, one of them is empty. How can I move site directory from old server to new server via SSH connection? PS: On both servers is unix
0
votes
1answer
3k views

very slow connection to ssh server from client (but not other servers)

I have an Ubuntu 12.04 laptop that is taking so long to connect to various servers (in different data centres) that it seems like a bit of a lottery whether I'll actually get a connection. If I ...
0
votes
1answer
5k views

Able to connect by SSH, but not x2go

I am having trouble connecting to a remote server with X2GO using a DSA key. Connecting works fine over SSH, but when I try to connect with X2GO, it goes immediately to the username/password box and ...
0
votes
1answer
43 views

Using SSH Keys with Kerberos

So there's an issue that we've been having at our company causing me to pull my hair out for the past week: We have hundreds of server boxes (a mix of CentOS6/7, if it matters) that need to quickly ...
0
votes
1answer
4k views

Autostart SSH after reboot

I've installed a debian (6.0) on a server. It currently has SSH installed so I can connect from a remote host. The problem is that when I restart it, it shows the screen to log a user in, and can't ...
0
votes
0answers
12 views

Keepalived multi route and ssh

We have configured keealived to have a floating 1.2.3.4 ip in another network range of the permanent ip 5.6.7.8 of the server. Floating Ip is working very well. Problem comes when Keepalived host (A) ...
0
votes
2answers
4k views

check_ssh executed from Nagios server returns “Server answer: ”, nothing else

Commmand works on the host I need to monitor (its IP is denoted as $HOSTADDRESS$ here): [root@host ~]# /usr/local/nagios/libexec/check_ssh localhost SSH OK - OpenSSH_4.3 (protocol 2.0) However, on ...
1
vote
3answers
552 views

Forwarding X11 with one hop without X-server installed

problem I want to run X-applications remotely on a machine C from my client A. The only way to connect to this machine is by using machine B (firewall) as a hop: A --> B --> C So far, simple ssh ...
0
votes
0answers
64 views

Why can't my root user log in to ssh anymore?

I recently add a new system user and now my root user can no longer log in via ssh. My /etc/ssh/sshd_config is below. cat /etc/ssh/sshd_config # Package generated configuration file # See the ...
-1
votes
0answers
32 views

SSH key not authorizing, log says 'possible break in attempt'

I've followed the steps that everyone says to set up ssh key authentication. Make the authorized_keys file on the server in .ssh from the .pub file, set permissions on the file and the directory. ...
0
votes
1answer
39 views

Can't ssh, permission denied

I have created new user using useradd USER, but I can't SSH to the server and login with it. I already have another account to which I can SSH easily. Running ssh -v USER@domain.tld is returning this ...
-1
votes
0answers
19 views

SSH over WAN to server in VPN

I have a server that is sometimes in a VPN and sometimes isn't and a client that wants to ssh to it using a public domain name. When the server is in the VPN, sometimes the client can't ssh to it. ...
1
vote
2answers
2k views

Connection closed by IP ( Linux Redhat) while ssh to Amazon server

I am accessing my server on Amazon AWS via ssh and suddenly its no more accessible via ssh. I am getting " Connection closed by 'Live IP Address of Server' " error. I think there are too many ...
0
votes
3answers
30 views

Amazon EC2 Security Group inbound rule with a dynamic IP

I'm looking for clarification on what I see as a potential problem with EC2 Security Groups. I'm setting up a Security Group for connecting to linux instances. I've created "anywhere" rules for HTTP ...
-1
votes
0answers
17 views

Scheduled execution of files over network [closed]

forgive my ignorance as I'm a Mac user and have been out of the Windows world for a long time. I am looking for direction on how I might be able to achieve the following: Have a windows computer ...
1
vote
6answers
5k views

sshd shuts down with “No supported key exchange algorithms” error

sshd $ /usr/sbin/sshd -f testconfig -p 22025 -d debug1: sshd version OpenSSH_5.2p1 debug1: private host key: #0 type 0 RSA1 debug1: read PEM private key done: type RSA debug1: private host key: #1 ...