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
1answer
71 views

ssh connect view options

When connecting via ssh like this: ssh example.com I'm assuming at some point all the command line and config options are all combined to form a full command with all the -o options passed to it, ...
4
votes
0answers
30 views

Why is it common in the startup world for ssh keys to be used for authetication instead of kerberos? [closed]

My first few jobs as a linux admin had be working under some very senior admins. In all of these cases kerberos was setup for users to request a security token and gain access to company servers for ...
0
votes
1answer
98 views

sshpass installed but not working

Hi i am working on distributed environment and installing hadoop but when i am doing that i am getting error fatal: [server2.impetus.co.in] => to use the 'ssh' connection type with passwords, you ...
0
votes
0answers
47 views

When I use 'ssh' on Apache server -> Failed to get a pseudo terminal: Permission denied

I'm using flask with apache(mod_wsgi). When I use ssh module with external command subprocess.call("ssh ......",shell=True) (My Python Flask code : No error) ssh = "sshpass -p \""+password+"\" ssh ...
2
votes
0answers
239 views

How to prevent SSH freezes over an openvpn client to client connection

I have the exact same issue as the one described here, but I cannot request clarification from the author, since I am a new user and I cannot post a comment on that, so I am posting a new question (I ...
1
vote
0answers
26 views

Send tmux command from remote inside ssh session to local instance

The goal is to send tmux command to the local running tmux from the remote server. not to run to different instances of tmux. Inside tmux we ssh to a server that doesn't run tmux local>tmux ...
-2
votes
1answer
29 views

send tmux command from inside ssh session

Inside tmux we ssh to a server that doesn't run tmux local>tmux send-key C-p # works local>ssh user@remote user@remote> tmux send-key C-p tmux: command not found It looks like this more ...
1
vote
2answers
94 views

SSH tunnel on port other than 22 under OSX

I'm trying to access two different machine's VNC servers located on the same local network from the WAN. As I'd like that traffic to be routed in an SSH tunnel, I'm using ssh admin@xxxxxx.net -N -L ...
2
votes
0answers
27 views

Forced to change expired password when using ssh key

I am working in an environment where I have an account on multiple linux machines where accounts and passwords are managed independently (no active directory/LDAP/etc) and passwords expire every 30 ...
1
vote
1answer
28 views

SSH Jump Host and move to a specific directory

I need to concatenete a cd command with an ssh jump host: :~$ ssh -tt -C -X user1@server ssh -tt -C -X user2@host "cd ~/my/work/directory ; bash" but I get the following error: bash: line 0: cd: ...
0
votes
2answers
30 views

Enable root to console login only and restrict ssh login for root only

I want to enable root login at the console only, and disable root login via SSH. However other users can still SSH to the server (Ubuntu 14) and even sudo if there part of the sudoers group. I have ...
1
vote
0answers
34 views

SSH with Putty as proxy server

I have one restricted network with a Windows machine and one less restricted network with a Linux machine. I'm only able to initiate connections from the Windows machine to the Linux machine through ...
2
votes
1answer
74 views

How to use DSA key pairs instead of RSA

For testing purposes, I would like to enable DSA authentication on my server (let's name it A). If I remove all the key pairs located under /etc/ssh, both RSA and DSA key pairs are generated on sshd ...
1
vote
3answers
61 views

Run bash script as sudo from windows without interaction

I need to execute a bash script as sudo on a remote linux machine from TeamCity running on a windows box. I can execute the script fine from the cmd line using plink, but I am prompted for a ...
0
votes
2answers
40 views

Give private key ownership to user without /home

so I am looking to set up ssh private/public keys between two servers, for use with sftp (and ultimately lftp using sftp - but one step at a time). I have created the private and public keys, and ...
4
votes
4answers
418 views

Arrange server resources so that ssh is always available

I have a linux server for one of my web applications. Every once in a while, a process (a long running script maybe) might go out of hand, consume too much memory / cpu cycles maybe and block all ...
1
vote
1answer
25 views

Allowing Pubkey OR Password Authentication for Chrooted users

I manage a legacy system that numerous clients connect to in order to consume large files of scientific data. Currently these users connect via SFTP, and because of the huge diversity of experience ...
1
vote
0answers
73 views

Write Permissions Denied when using sshfs to Mount Remote Directory on Boot

I have two Cent OS 7 servers I am trying to mount a directory from my host server to my client server. I want this to automatically mount on boot. On my host machine (hostmachine.local) I setup a ...
2
votes
1answer
59 views

ssh: ProxyCommand forward host lookup fails

I am trying to do an ssh multihop from my local machine to a server called cluster, using a server called merlot in-between. As per http://sshmenu.sourceforge.net/articles/transparent-mulithop.html, ...
4
votes
3answers
250 views

centralized audit server solution for mutiple server management [closed]

We have dozens of Linux servers, and several developers, and each of the developer covers parts of the servers. Currently each server has an admin account, if someone want's to manage that server, ...
1
vote
0answers
92 views

ssh connection very slow and delayed [duplicate]

I have recently created and configured an ubuntu server 14.04.3 with the help of the ubuntu-core tools. Networking with IPv4 and IPv6 works fine for me with different clients. But a few days ago, i ...
1
vote
1answer
76 views

How can I get sshd to tell me why it's failing public key authentications? [closed]

I'm using OpenSSH 6.9p1 (on Lubuntu) as my SSH server. When trying to connect to it (using an SSH client in Cygwin), I keep being reverted to password authentication, despite having properly generated ...
0
votes
0answers
18 views

SSH client - prompt editable as Windows control

Is there a way to configure PuTTY (or some other SSH client) to be aware of what's currently typed into the prompt and make it editable via the mouse (like in an input box / textfield that shows at ...
2
votes
0answers
32 views

SSH VPN tunneling

I am testing some basics of SSH VPNs on Layer 2 like this: ssh -w 1:1 -o Tunnel=ethernet hostname That works fine, but is there a way to tunnel multiple VLANs over such a SSH Tunnel? I know i could ...
-2
votes
2answers
36 views

No nc arguments being recognized

I'm having trouble using my nc command. Everytime I enter any parameter, even using -h, linux just prints: *BusyBox v1.20.2 (2014-05-14 13:19:21 EDT) multi-call binary. Usage: nc [IPADDR PORT]* I ...
0
votes
0answers
80 views

RPC shutdown command from Linux to Windows Server 2012 - connection refused

I am needing to restart a windows server from a Linux server. The error i get is: (i have replaced ip address with xx ) Could not connect to server xx.xx.xx.xx Connection failed: ...
0
votes
1answer
221 views

How can I upgrade Fail2Ban in Ubuntu 12.04.5 LTS to get the “recidive” filter installed?

Basic question. How can I install an upgraded version of Fail2Ban on my Ubuntu 12.04.5 LTS (Precise Pangolin) so I can have a recidive filter set. Ubuntu 12.04.5 LTS installs Fail2Ban 0.8.6 and I ...
0
votes
1answer
59 views

Ubuntu - cannot ssh to vm using IP address

I have VM's running in Azure, and I see this error quite frequently: The VMs can be reached using either fqdn or public ip. When ssh-ing to the fqdn I'm able to log in (part of the fqdn obfuscated ...
1
vote
2answers
92 views

Root server with changed network settings - how to avoid to be shut out?

I just worked on a local Linux server in my office, connecting to it via SSH. I changed some network settings. Specifically, I added a simple network bridge that replaced the previous ethernet ...
0
votes
1answer
12 views

In OpenSSH DEBUG1 output on connecting, what does the number in the `Server accepts key` line refer to?

When I connect to remote systems, specifically in this case using OpenSSH 6.0p1 Debian-4+deb7u2, if I use the -v switch to see what's going on one of the lines printed is: debug1: Server accepts key: ...
1
vote
0answers
39 views

Interpreting TCP Traceroute results here?

I used to be able to connect via SFTP to a remote server to download files. Our local server is Windows 2008 Enterprise and the remote server is Unix. The local computer and the remote server are ...
1
vote
0answers
29 views

why ssh not route outgoing packages (pptp)?

I have VPS #1 that pptpd and sshuttle installed on it and VPS #2 that have ssh access to it I need to rout trafic from VPS#1 to VPS#2 (by tunnel because pptp not available to vps#2) for users that use ...
1
vote
0answers
18 views

restoring debian user access

I have accidentally set the owner for all files and folders in the /home folder to 'root' (and a lot of other folders also) and now when I ssh into the server as myusername, I get the following error: ...
0
votes
1answer
28 views

ssh check validity of known_hosts fingerprint

One of my Debian machines (all using some more-or-less recent version of OpenSSH) has got some fingerprints of remote machines in the known_hosts file. From time to time this remote machines get ...
1
vote
1answer
40 views

How to get color output from SSH command

I'm trying to run some commands remotely and recieve the output back with color. What am I missing? Here's what I've got so far: example.sh . /etc/profile [[ -f ~/.profile ]] && . ...
0
votes
1answer
51 views

Unable to connect to SSH

At first I apologize for my newbie question. I just installed darkstat on my centos server using the following command to monitor traffics. yum install darkstat darkstat -i eth0 Unfortunately ...
-2
votes
1answer
70 views

How do I SSH through a jump server into a Rails console?

I'd like to have a one-liner for this. When I use the following command: ssh -o ProxyCommand='ssh -W %h:%p user@<jump server>' -t user@<rails server> 'sudo su another_user ; cd /some/dir ...
0
votes
0answers
30 views

Run Crontab command in jailed enviroment

I had created a user account in my server. And I created a jailed enviroments for that user. One thing i need is how to run crontab command in jailed enviroments. I tried add bash crontab to ...
0
votes
1answer
122 views

qemu running in ssh: how to exit?

I am connected via SSH to a terminal server. On this server I am using qemu-system-x86_64 ... -curses to run a Command Line based operating system. How can I terminate the virtual machine? At the ...
0
votes
1answer
61 views

fatal: bad ownership or modes for chroot directory component “/” in SFTP

I've been trying to configure sftp in a debian server.sshd_config: Subsystem sftp internal-sftp UsePAM no Match User sftpUser ChrootDirectory /users/sftp/sftpUser ForceCommand internal-sftp ...
0
votes
1answer
53 views

Cannot SSH to ec2 instance in VPC

I'm just starting with AWS, and have 2 ec2 instances running on a VPC, one with a public and private IP, one with only a private IP. I can SSH to both (using my key) if I attach an external IP to ...
0
votes
3answers
148 views

Rsync with ssh and root not working after change hosts IP

We have a server that backup multiples servers. The backups server is located in the office and all other server in the cloud. We have moved all the server to a new IP, and from this moment the ...
0
votes
2answers
113 views

Changed /bin/sh to /bin/busybox for root, broke SSH access. How to fix it?

I made a silly mistake... I was playing around with busybox and used chsh to switch the root shell from /bin/sh to /bin/busybox which seems to have broken the SSH access. When I do: root@dev:~$ ssh ...
0
votes
1answer
29 views

Installing sshd on an existing Busybox? [closed]

Is it possible to install sshd on a running Busybox based router? Thanks.
-1
votes
2answers
99 views

Connection to port 22 refused [duplicate]

We are running ubuntu 14.04 with openssh client & server installed. However when trying to connect to port 22 we get 'connect to host localhost port 22: Connection refused’. Port 22 is open on ...
1
vote
0answers
30 views

How automatically start an outbound SSH connection on a server when an internal client connects to that server

Question How to automatically start an outbound SSH connection on a server when an internal client connects to that server on a specific port, for any given service? (not just sshd on the server, and ...
0
votes
0answers
39 views

google cloud vm dropping ssh connections

Since yesterday afternoon (Oct 17th, 2015, 1400 ET), we have noticed that SSH connections into VMs in us-central1-f are extremely unreliable and get dropped arbitrarily. The VMs also apppear ...
0
votes
3answers
124 views

Now to add ssh publickey to Clustered NetApp for Active Directory user?

I am trying to load my ssh public key on a netapp instace but it seems that it does not allow me to add my key. lcy2-dosvm01::security login publickey> load-from-uri -uri ...
0
votes
0answers
164 views

Start remote XFCE session on second TTY via SSH and X forwarding

I don't know very much about ssh and X forwarding (yet) and I am able to run a few graphical apps on the host machine and forward them to my client by using the -X option on ssh. What I really want to ...
0
votes
0answers
21 views

Multiple ssh port-forward to 1 OpenVPN client which connects to 2 OpenVPN servers

I have the following setup: SSH PortForward + OpenVPN Client/Server config My VPS box at myvps.example.com runs 2 openVPN client sessions to 2 physically separate OpenVPN Servers 1&2. SOCKS ...