Questions tagged [ssh]

SSH, or "Secure Shell", is a networking protocol for securely connecting to a remote computer over an unsecure network. SSH is also the name of the default command-line SSH client. This tag is for questions involving using and troubleshooting SSH connections, as well as setting up and configuring SSH for applications which use the SSH protocol. This tag should be used with other tags to better identify the environment of the problem.

Filter by
Sorted by
Tagged with
2 votes
1 answer
26k views

ssh: connect to host [ip] port 22: No route to host [closed]

The VPN connection was successful, but: $ ssh -X -l cristic 192.168.1.40 ssh: connect to host 192.168.1.40 port 22: No route to host It may be of importance that I am abroad, visiting a friend, and ...
cristic's user avatar
  • 31
3 votes
2 answers
7k views

Hide/Don't list non-readable folders

In a multi-user environment using Ubuntu server 14.04 as a shared drive All users connect via SFTP using Filezilla/WinSCP and are chroot to /home/company-folder/ Each user has also its own personal ...
berriop's user avatar
  • 71
4 votes
1 answer
6k views

Open ssh in terminal by clicking on "ssh://user@host" links in browser

I found a nice way to open a terminal with SSH to user@host if you click on a link that looks like this: ssh://user@host I guess the above solution works. It is great. I need to get this working on ...
guettli's user avatar
  • 1,787
0 votes
1 answer
866 views

Problem with cluster installation with cloudera manager

I am installing Cloudera Manager in my system(14.04/64b). While installing at the final step, before finish installation I got some ERRORs in validation as shown below, errors in above page are, ...
A J's user avatar
  • 11.4k
1 vote
1 answer
402 views

Byobu automatically open windows on boot

I really enjoy using byobu and the launch at login feature. I'm trying to figure out the best way to have a byobu session automatically launch on system boot, with several windows running different ...
Curtis Everingham's user avatar
1 vote
2 answers
1k views

OpenSSH v7 where can I install it from

Ok, so I understand how Ubuntu does their package releases and what-not but I need to install security updates reliably without searching the vast Internet downloading and compiling. Does anyone know ...
YouDontNeedMyName's user avatar
19 votes
3 answers
27k views

Chkrootkit says "Searching for Linux/Ebury - Operation Windigo ssh... Possible Linux/Ebury - Operation Windigo installetd", should I be worried?

I recently ran sudo chkrootkit and this was one of the results: Searching for Linux/Ebury - Operation Windigo ssh... Possible Linux/Ebury - Operation Windigo installetd In my research on this ...
user avatar
2 votes
1 answer
563 views

Unable to Install Openssh-Server on Ubuntu Server

I am trying to install OpenSSH-Server and receiving following error, Unpacking openssh-server (from .../openssh-server_1%3a5.9p1-5ubuntu1.7_amd64.deb) ... /var/lib/dpkg/tmp.ci/preinst: 17: exec: /usr/...
ajay_m's user avatar
  • 21
2 votes
1 answer
441 views

Setup Ubuntu with Apache to redirect subdomains to other internal ip's and different ports

I have been trying to hours to get this to work with zero luck. What I'm trying to do is setup so that if I ssh to something.domain.com apache will redirect to a different internal ip like 192.168.0....
Not TheNSA's user avatar
1 vote
1 answer
545 views

iptables rules not dropping IPs

I have a trusty 14.04.3 LTS server with fail2ban running. I have been under attack from 43.229.53.71; the last octet can change. My auth.log files show entries like this: Dec 11 15:02:51 M1 sshd[...
IC1's user avatar
  • 11
1 vote
2 answers
345 views

Pass param to ssh user@server bash --login -c FILE.rb PARAMS

I need run bash ruby script over ssh on remote server: # $1 - get params from local bash session ssh user@server bash --login -c FILE.rb $1 FILE.rb now recive no any params bash --login is need for ...
mixo's user avatar
  • 13
2 votes
0 answers
2k views

How to create a log of an rsync transfer on the remote server?

I have a lovely functional bash script, which uses rsync to create a backup on a remote server, utilising key-based authentication. It uses a standalone rsync command, rather than having to set up ...
Arronical's user avatar
  • 19.9k
0 votes
1 answer
8k views

How to fix "undefined reference to to `SSLv3_client_method`" during cURL custom installation

I work on a project which use cURL a lot. Recently we add a new feature to allow perform SFTP calls within our API. SFTP is disabled by default in cURL so I tried to search how to enable it. I found ...
shulard's user avatar
  • 113
3 votes
1 answer
4k views

Is it possible to keep added ssh keys in ssh-agent after reboot? (using keychain)

Is it possible to keep added ssh keys in ssh-agent after reboot? As I figure out we use keychain to make ssh-agent keep running between logins, Am I right? so, is there anyway to keeps password ...
Ravexina's user avatar
  • 55.7k
0 votes
1 answer
65 views

passphrase issue with correct ssh keys

It is the first time I experienced this issue : I have setup ssh keys and I set the passphrase. Since the file is not id_rsa but id_rsd, I set this Host someIP HostName someIP User git ...
epsilones's user avatar
  • 1,471
2 votes
1 answer
4k views

How to fix sudo due to pam error

The short story is that I can SSH into my device with the a username and password that should be in the superuser group (so I should be able to sudo su). The problem is that I was trying to increase ...
Marc's user avatar
  • 121
0 votes
2 answers
115 views

Refused connection to SSH

I've tried to access the Ubuntu platform using SSH, SCP, and SFTP and got refused with a message. I tried service ssh restart and got: ssh:unrecognized service I also typed sudo ufw disable in ...
avis's user avatar
  • 1
0 votes
1 answer
218 views

How to connect to another computer(windows installed) with SSH? [closed]

is there a chance of connecting to a computer that has windows 7 installed? Will I be able to make changes even when the computer is off?
SuDo User's user avatar
5 votes
2 answers
2k views

putty key -> connection refused (permissions OK, /var/log/auth.log is empty)

I already checked here: Trying to do ssh authentication with key files: server refused our key and I did all these: *new: generated key(s) via ssh-gen in a Linux client. added the public key to ...
Berry Tsakala's user avatar
2 votes
1 answer
19k views

How to set default DISPLAY for all SSH sessions?

I'm SSH-ing to my PC from my phone, and I have to run export DISPLAY=:0.0 every time. Is there any way I can set it on my PC so that I don't have to do it on my phone?
anukul's user avatar
  • 145
6 votes
1 answer
2k views

Why is ssh-agent running? Should it be?

Recently I've noticed a process called 'ssh-agent' running on my computer. It's only been there for a week or so, but it's never been there before. According to system monitor, the process running is '...
SuperSluether's user avatar
0 votes
2 answers
68 views

remote accessing linux system

I would like to access my Linux system's command shell remotely. The system runs at home behind a router which connects it to the internet. I was thinking I could forward a port on the router to the ...
dudus's user avatar
  • 3
3 votes
2 answers
3k views

Connect to a server through tunnel like WinSCP

I'm migrating me from Windows to Linux. I've installed an Ubuntu (14.04.01) and I usually did this: myPc (tunnel) -> machine A -> machine B With the opcion "tunnel" in advanced options in WInSCP. ...
maiky_forrester's user avatar
3 votes
2 answers
8k views

How to execute a command in multiple Terminals by executing a command in only one? [duplicate]

I am going to have multiple machines that I am going to connect to via SSH so I am going to have multiple Terminal windows up, though what I want to do is to execute a command so that all the machines ...
user avatar
6 votes
2 answers
2k views

Use sshfs with ssh-agent and/or kwallet

I am using sshfs with a password protected key pair to mount a remote folder using a shell script. I am also using ssh in that script. Every time I start the shell script I get a password request on ...
Silicomancer's user avatar
0 votes
2 answers
2k views

In the iptables i have a rule for ssh, why doesn't it work?

I have changed all the iptables chains to DROP, and made a rule to allow ssh from the computer (10.21.0.40, have hidden NAT, eth1) to Ubuntu Server (172.16.21.1, static ip, eth0), here is the rule: ...
Benny's user avatar
  • 61
1 vote
1 answer
80 views

How to host a virtural private server?

How can I host several VPS's on my Ubuntu computer? I have all ports open, and want to host several virtual private servers for a few people. They need to be able to connect to a VPS on my computer ...
C.c.h's user avatar
  • 59
5 votes
1 answer
2k views

Why does `passwd -l` (--lock) also prevent ssh key-based login?

I locked a users password with passwd --lock [userName], the man page and this answers tells me, that a locked password doesn't prevent other means of logins (e.g.: ssh key-based). Quote from man ...
weemonger's user avatar
  • 403
1 vote
0 answers
310 views

Recursivly resolve aliases for tor hidden service with ssh

I run a couple of raspberry pis with hidden services on it (for remote access via SSH). I used to use a .ssh/config to get nice aliases for the hidden services. Something like: Host *.onion ...
Levin Keller's user avatar
0 votes
1 answer
127 views

ssh daemon and port forwarding issues

could somebody please help me? I am trying to troubleshoot a ssh server connection. The daemon runs fine on a local network but for some reason will refuse a external connection even though the port ...
frankburns's user avatar
1 vote
1 answer
337 views

connect two servers via second network interface

I installed Ubuntu 14.04.3 LTS on two HP Servers. Each server has four network interfaces and I want to use the 2nd interface to connect the two servers. The first interface (em1) is configured to ...
hadron's user avatar
  • 115
7 votes
1 answer
52k views

How to give permissions to www-data to log in with ssh? [duplicate]

I have an Ubuntu 14.04 server, where Apache runs as user www-data. I would like to be able to log into the server via ssh as www-data. How can I define a password for www-data without breaking the ...
Lorenz Meyer's user avatar
1 vote
0 answers
518 views

Override default 'HOSTALIASES' behaviour

I followed the method of creating my own custom hosts file as suggested here in this answer. It works fine. But the problem is it expects your public and private keys to be in the ~/.ssh folder with ...
Punit Naik's user avatar
0 votes
1 answer
135 views

Connecting to existing terminal from iPhone to Ubunutu desktop [duplicate]

I run a small Minecraft server on an Ubuntu PC in my house. Sometimes I have to manage the server outside of my home so I use an ssh client on my phone. This works, but each time I close the app and ...
kalenpw's user avatar
  • 744
5 votes
1 answer
218 views

A GUI that runs on a remote computer, not the server?

In the past I have used Webmin to manage my linux servers. These days I primarily work off the command-line. I'm aware that one can install a GUI on linux servers, but this makes things much heavier ...
davemackey's user avatar
3 votes
1 answer
9k views

How to associate a keyfile with a site in FileZilla

Initially, I had a problem with creating a site within FileZilla as I needed to use a private key to log in to the server, but there wasn't any option listed for logging in with a keyfile. As per this ...
loremIpsum1771's user avatar
4 votes
1 answer
403 views

Changing a process' output to ssh terminal

I have a simple python script: import time counter = 0 while True: print counter counter = counter + 1 time.sleep(10) Let's say this is running on my linuxbox inside LAN and is printing ...
Jarwin's user avatar
  • 325
0 votes
1 answer
530 views

Anacron can't read ssh keys?

I've set anacron under the non-root user as follows: mkdir ~/.anacron cd ~/.anacron mkdir cron.daily cron.weekly cron.monthly spool etc My anacrontab in ~/.anacron/etc: # /etc/anacrontab: ...
Michal Zimmermann's user avatar
1 vote
2 answers
10k views

I broke my etc/network/interfaces file!

I'm trying to transfer a domain name to a new IP address, and am following this tutorial to enable IPv6 for my Digital Ocean droplet. I was on the step "Making the IPv6 Configuration Persistent," and ...
Katerina Jeng's user avatar
8 votes
1 answer
35k views

SSH into a machine and then launch an interactive command line program

I would like to actually ssh into a machine (not remotely execute a command like ssh -i key.pem user@host 'bash -s' < script.sh) and then once that is complete run a command to launch an ...
connorwstein's user avatar
0 votes
1 answer
3k views

/usr/bin/pkexec failed

When I am creating an SSH public key and I'm prompted to enter my account's password the terminal returns bash: line 2: .ssh/authorized_keys: Permission denied When I open authorized_keys I cannot ...
Lee Gildemeester's user avatar
0 votes
1 answer
603 views

Putty not letting me to login to ubuntu remote server?

I am using amazon ec2 instance for one of my products and i am stuck with a very big problem. I am new to server and was just looking to configure UFW for only my ipaddress and i updated a rule for it ...
Cheran Prakash's user avatar
0 votes
1 answer
4k views

Enable remote desktop on azure ubuntu

A few day before I created a virtual ubuntu machine o my MS azure. I have an ssh connection (via PuTTY) to this machine, but I just cannot get the remote desktop working. Well in fact, I'm pretty new ...
Patrik Šimunič's user avatar
2 votes
1 answer
950 views

rsync error script

I wrote a small script for rsync which does not work and I have no idea why: #!/bin/bash rsync \ -a \ --delete \ -b --backup-dir=/lunarc/nobackup/users/mcocdawc/.MIL53_backup/ \ --checksum \ -Pv --...
mcocdawc's user avatar
  • 177
0 votes
1 answer
142 views

Unable to access Ubuntu network share from Windows, Ubuntu web interfaces are down and unable to access via PuTTY

first off I am very much a novice! I have a home media server running Ubuntu server 14.04.3 LTS On Thursday evening, after months of smooth operation, web interfaces for webmin etc. became ...
Matthew_117's user avatar
12 votes
2 answers
66k views

How to connect to SFTP in FileZilla using a private key

I've downloaded FileZilla on Ubuntu 14.04 (Trusty Tahr) using the package manager (apt-get) and I'm currently setting up a site to transfer files for on the remote server I'm using. For the ...
loremIpsum1771's user avatar
3 votes
1 answer
119 views

How to use fabric with juju

I'm using the python-django charm to deploy a small django-based site, with the local provider for test purposes. So far the deployment itself has worked, but I'd like to be able to manage the site ...
David Planella's user avatar
0 votes
1 answer
11k views

SSH script password input [closed]

So I am running Linux Mint 17.2. I have a bash file I would like to run in terminal to login via SSH into my other mint 17.2 server. I am able to do this manually no problem, but when I try using ...
nomad12321's user avatar
1 vote
0 answers
1k views

Can't SSH to EC2 instance after Ubuntu upgrade

Summary: I have Ubuntu 12.04.3 LTS server running as an AWS EC2 instance. Using do-release-upgrade, 14.04.3 is installed without any problems. But after that I can't SSH into my instance. Both my ...
Topolo's user avatar
  • 11
2 votes
1 answer
3k views

NAT port forwarding using iptable doesn't work

I have a server with Ubuntu Server and a Xubuntu virtual machine on it, virtualization software is virt-manager. Ubuntu Server IP: 172.16.63.140 Xubuntu Virtual Machine IP: 192.168.122.4 I can do ...
Luca's user avatar
  • 221

1
81 82
83
84 85
125