SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

4
votes
4answers
7k views

Automated ssh-keygen without passphrase, how?

I would like to make an automated script that calls ssh-keygen and creates some pub/private keypairs that I will use later on. In principle everything works fine with.... ssh-keygen -b 2048 -t rsa -f ...
2
votes
0answers
107 views

SSH public key login fails without pattern

I'm running a bunch of servers with Ubuntu 14.04.1 (sun,hyperion,...) all of which use public keys (OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 on all machines) for rsync without problems. Almost all... ...
2
votes
1answer
101 views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
2
votes
3answers
146 views

How to determine users connected ssh

I want to see how many users are connected to a PC to see who is gonna see the message when I do for example: echo hello users! | wall
1
vote
0answers
44 views

SSH broken when connected to VPN upon upgrading from Ubuntu 13.04 to 14.04

I need to SSH into a server which is only accessible when I am connected to a VPN (PPTP). Using my Ubuntu 13.03 virtual machine, this works perfectly. First I connect to the VPN, then I ssh into the ...
1
vote
1answer
62 views

Logging into a VirtualBox Fedora virtual machine

I created a Fedora 20 virtual machine with VirtualBox 3.18. I created a host-only network adapter for it, it has the ip address 192.168.56.1 . I ping that address from the host, it works. I try to ...
40
votes
4answers
40k views

What do the options `ServerAliveInterval` and `ClientAliveInterval` in sshd_config do, precisely?

I found this question, but I'm sorry I don't quite understand the settings on the two variables ServerAliveInterval and ClientAliveInterval mentioned in the accepted response. If my local server is ...
1
vote
1answer
49 views

Use git pull via ssh command invoke

When I log in to my server via SSH, I am able to use git over ssh (private repository): user@local:~$ ssh example.com Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 2.6.32-042stab083.2 i686) * ...
0
votes
2answers
97 views

Why is my server intermittently refusing ssh connections?

Background I have an ssh and OwnCloud server. Frequently, my desktop's OwnCloud client disconnects. Attempting to ssh into my server results in Connection refused. I can ping the server, but cannot ...
0
votes
1answer
45 views

Can't use hostname for my linux machine

I installed apache on my RHEL machine yesterday and found I could access it from a browser using http://. Of course, sshing using the hostname was also working. So, I made an index.html file inside ...
6
votes
3answers
2k views

Passing SSH options to git-clone

I connect to my server using SSH: ssh user@server -p 2224 -zZ abcd I also have a git repository on my server. The only way I know to clone is: git clone ssh://user@server.com:2224/path/to/repo ...
3
votes
3answers
1k views

How to bring back SSH session that was started with the -f option (run in background)

I'm pretty lost on this. From the man page: -f Requests ssh to go to background just before command execution. After starting SSH with the -f option, I have a working tunnel. But after I ...
16
votes
2answers
10k views

Why SSH takes a long time to Connect

I have noticed that some Linux Servers in Network takes long time to connect using ssh. Situations: There are two situations I have faced: On some servers some times it takes a long time to ask ...
2
votes
1answer
60 views

Centos 6.5 not able to login with public key and login is sloooooow

I set up a new system with CentOS 6.5. I copied my public key key with: ssh-copy-id root@192.168.1.202 It took 15+ seconds for the password prompt to show, but then it copied. However ssh to ...
1
vote
2answers
343 views

Help updating OpenSSH to v6.6

My system is vulnerable to OpenSSH Wildcards on AcceptEnv Vulnerability, CVE-2014-2532. I have tried to update openssh to version 6.6 for centos but I can not get repository[sic] for that version. ...
3
votes
1answer
78 views

Using X-Windows from Windows 8.1

I have a Linux box that I don't have physical access to, but I do have SSH access. I'd like to know is if there is something similar to SSH or Telnet that would allow me to use Gnome or KDE instead of ...
9
votes
4answers
14k views

How to copy with SCP between two servers using key auth?

I can log in via SSH using key authentication to SERVER1 and SERVER2. However, I can't copy files between the two servers. Why? How can I copy between them? (the data that I have to copy is bigger ...
2
votes
1answer
233 views

public key authentication without authorized_keys file

I have a lot of ssh public key logins on a Linux server, e.g.: Jul 25 11:41:01 host sshd[24594]: Accepted publickey for root from xxx.xxx.xx.xx port 33374 ssh2 This is strange for me since there's ...
0
votes
0answers
22 views

I am getting inconsistent replies when setting up passwordless SSH for an application

So I am setting up password-less ssh from 2, 2 server clusters that span between 2 data centers. I am finding that password-less ssh for the application user is very inconsistent. I seem to have a ...
1
vote
1answer
58 views

Why is the result of this for and while loop different? [duplicate]

I have a for loop: for host in $(cat ./hosts) do echo -e "$host" ssh -o "StrictHostKeyChecking no" $host "uptime" 2>/dev/null echo -e "\n" done and a while loop which is supposed to the ...
7
votes
4answers
1k views

How to add an ip range to known_hosts?

Many services (like GitHub) use a wide range of IPs, and obviously the same public key. How can I add an IP range (preferably in a single) to known_hosts file? For the GitHub example, it uses the ...
0
votes
1answer
67 views

Can't ssh to my ubuntu machine using global ip address [duplicate]

I've gone to my router settings and added port forwarding for port 22 to my linux machine. However, when I now type ssh @ from another computer (the terminal of my mac), it says operation ...
0
votes
1answer
84 views

Google Compute Engine with multiple SSH users, Debian

I have managed to set up my server with a default user 'admin'. The sshKeys in the metadata is set with the following format, described in the google documentation. key: sshKeys value: ...
2
votes
1answer
929 views

Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'

I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
2
votes
4answers
4k views

Fix terminal title after SSH remote logging to another machine

right now I am using an one-line perl code to change titles of my terminal bars, print("\e]0;@ARGV\7"); but every time after I ssh to another remote machine, the title will be modified by the host ...
0
votes
1answer
18 views

Why process wasn't killed after closing SSH connection

I launched this command via SSH on a Debian server: watch --precise -n 1 top -b -n 1 -p 27330 | tail -n 1 | awk "{print \$9}" >> 27330.log & After a while I quit my terminal. When I ...
3
votes
1answer
45 views

SSH not logging properly

I am looking at /var/log/auth.log on a Debian Webserver, and the last thing it logged was: Jul 2 21:09:01 h311 /USR/SBIN/CRON[25912]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d ...
9
votes
5answers
13k views

Can a linux user change their password without knowing the current password?

I'm setting up a few ubuntu boxes, and using opscode's chef as a configuration tool. It would be fairly easy to install public keys for each user on each of these servers, and disable password ...
1
vote
1answer
181 views

How can I use arcfour encryption over sshfs?

A recent update to my Raspbian Raspberry Pi has made arcfour sshfs fail. From the client: $ sshfs pi:~ /tmp/alskdjflkasdf/ -o Ciphers=arcfour read: Connection reset by peer On the server at ...
0
votes
0answers
37 views

Start X11vnc on boot at SLIM login window

Debian 7.7 Wheezy, xorg, SLIM, i3 I'm unable to have x11vnc -usepw -forever started with SLIM, to offer a vnc connection on boot, as I do not have a monitor attached to the computer. I tried to add ...
1
vote
1answer
33 views

How does Slackware Login quotes work?

I'm new to Slackware and I think It's beautiful Distro. When I login it with ssh it prints motd, quote and a line for informing mail like this Linux 3.10.17. Last login: Thu Oct 23 06:28:08 +0330 ...
11
votes
5answers
4k views

Does a `scp` transfer close when I close the shell?

I have scp transfer (from one remote server to another), that is quite big. So maybe I want close the computer from which I executed this command, will this end the transfer? I have ssh access to ...
3
votes
1answer
26 views

Allow SFTP users to create sub-accounts

Environment Ubuntu 14.04.1 LTS server edition OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014 Current Configuration SFTP password-protected accounts are setup for Alice and Bob. Their ...
0
votes
1answer
37 views

Start aplication in local desktop from remote SSH [duplicate]

I have an issue for which the work around would be to start the application in X instead of headless. How do I make sure the app is executed on the desktop, even if I run the command from a remote ssh ...
-1
votes
1answer
104 views

Fail2ban consuming lot of bandwith

I have a raspberry pi on which I have a nginx and a ssh server, I have installed iptables and fail2ban in order to limit the attempts of ssh connection. The problem is that it seems that fail2ban ...
0
votes
2answers
52 views

SSH failed public key authentication

I have a server, and I want to be able to SSH in with two different users. I have setup public key authentication for the first user, and it works just fine, however, I can't login with the second ...
3
votes
5answers
3k views

Copy files without encryption (ssh) in local network

scp works well in all cases, but the Raspberry Pi is to weak to copy files efficiently in a secure environment (lan). The theoretically possible 6,75 MB/s via 54 Mbit wireless lan shrink down to about ...
1
vote
0answers
34 views

Is it possible to make a symbolic link of a file in other machine?

I have a account in a server and I would like have a symbolic link of some files in my local machine. How can I do this?
0
votes
1answer
76 views

SSH over multiple server and save output of multiple commands in file on local server

I want to SSH over multiple server (host 1, host2 and host 3) and save output of multiple commands (cmd1, cmd2 etc) in file (output.properties) on local server. I know there are a few posts similar to ...
2
votes
0answers
39 views

SSH Tunnel with autossh

I can't seem to find a close enough example but here it goes. I'm trying to in the end setup rsync from one server to another through an ssh tunnel. Local (my machine) will run the rsync to pull ...
0
votes
1answer
91 views

How does a cisco device know if I'm connecting via telnet or ssh?

I'm experiencing strange behavior with a Cisco UC520 router. When I am directly connected to the router and telnet to it using this: telnet 192.168.1.1 23 Then I get a successful login prompt: ...
0
votes
0answers
41 views

While trying to ssh, pam_ldap always sends the password “INCORRECT” causing bind to fail

I installed ldap-auth-client nscd ldap-utils on lubuntu 14.04 running on a banana pi. I can successfully bind as the user using ldapwhoami, but I cannot log in via ssh: Auth.log: Oct 21 02:12:05 ...
0
votes
1answer
26 views

What permissions should each file under .ssh have?

What permissions should each file under .ssh have? I just experienced some glitch caused by .ssh/config not having 600. What permissions other files there should have?
6
votes
2answers
193 views

annoying message “X11 connection rejected because of wrong authentication” while there is no problem at all

I'm having an annoying problem. When I'm logged in to a specific host via SSH, the message X11 connection rejected because of wrong authentication. occurs three times seemingly random about once ...
1
vote
2answers
47 views

SSH into multiple remote machines through ssh tunnel [duplicate]

I am new to ssh-tunneling. Basically I want to be able to get ssh access to servers in a remote lab (say subnet 1.2.3.X). I can log into a machine that is visible say 11.22.33.44 I want to be able ...
73
votes
8answers
31k views

How can I disown a running process and associate it to a new screen shell?

I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back. One way I thought of doing that was to transfer its ownership to a screen shell, ...
2
votes
0answers
36 views

SSH fork kills connection

I am using a linux script which has the task of forwarding control of the system to remote support. In this script one of the commands is a ssh port forward command that will forward the port of the ...
1
vote
0answers
25 views

Is it safe to disable password for a user, if it only uses SSH key login?

We want to remove the password usage on a UNIX system. The users should only log in with SSH key. Not password. So their password field in the /etc/shadow file will be "*" and set their password to ...
1
vote
1answer
104 views

Running commands after ampersand symbol & in a remote ssh session

I have a shell script that initiates a long, resource-intensive command on several different machines. In order to execute the script on each machine in parallel, I have an ampersand symbol after ...
4
votes
1answer
302 views

preventing the screen from being cleared when exiting an ssh session

I have rdist set up to push out some of my dot files to all the remote machines that I need to ssh into. I also have zsh as my default shell on all of those machines. When I ssh into a machine and ...