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

learn more… | top users | synonyms

3
votes
2answers
589 views

SSH connection timing out [closed]

I am trying to connect to an external host that is living in the Internet. From my laptop I can ssh fine. From an Ubuntu 12.10 server, the connection times out. Since they're in the same network, ...
1
vote
1answer
52 views

Terminal colors putty raspbian

I'm connecting to my Raspberry Pi from my Windows Machine using putty. I already adjusted the colors for bold blue in putty to be more readable (using this guide). But I still have problems with the ...
-1
votes
2answers
36 views

Connect to a remote linux server that is in default setup, not configured to be connected?

In our Company we have an internal-wikipedia-like help site. The Problem is, the MindTouch-Wiki is out of date, so i have to update it! The Problem is, its running virtual. Its Ubuntu 7.7 In ...
0
votes
0answers
60 views

Seeing SSH debug messages in Terminal/console

I am seeing "debug3: Received SSH2_MSG_IGNORE" appear in the terminal on a RHEL 6 Linux server. I thought maybe rsyslog had a console entry, but it doesn't. sshd_config has logging at AUTHPRIV, and ...
1
vote
3answers
77 views

How to send a output of unix command from one server to another server?

How to redirect the output of a unix command from one server to another server. I should be able to send the unix command's output from server-1. Then I should be able to receive the output in ...
0
votes
1answer
36 views

How to use private-key to setup password-less ssh on new machine

I have one machine say "source1" and there is passwordless ssh already set to more than 100 server say remote1,remote2 ...remote100. Now I need to set similar setup of passwordless ssh on another ...
1
vote
0answers
106 views

How to setup ssh over USB on an embedded linux device?

I have an embedded linux device with an ARM processor. I am connecting to it over a USB port using minicom. What should I do to "ssh" into the device through the USB connection? I want to setup ...
1
vote
1answer
82 views

What is the maximum length of an ssh-banner message?

It seems that if the banner message is longer than a certain limit, no banner at all will be displayed to the client. What is either the character or file size limit?
4
votes
0answers
595 views

Can't figure out why ssh_exchange_identification: Connection closed by remote host appear

At home, I have setup a Raspberry Pi with the latest version of Raspbian and with ssh enabled. I also use a Mac Book Pro with OS X 10.9.3. I use ssh pi@192.168.0.22 to do some work on the Raspberry ...
3
votes
2answers
911 views

How to Add rules to IP Filter (Firewall in SCO)

I need to add a rule (allow any to any port 22) to my firewall, so that I can ssh remotely into my machine. I have had a look in the SCO OSR600 Documentation and I cannot find anything in there that ...
2
votes
4answers
73 views

How can I run a GUI on my server through SSH? [duplicate]

Most people want to be able to forward a window through ssh to the machine they're logging in from. I want to do the opposite. I'm on my desktop and I'm logging in via ssh to my server. The server is ...
0
votes
2answers
63 views

How to enable passwordless auth to remote server as a different user?

This may seem quite trivial but what I've done doesn't seem to solve the problem. I'm connecting to a remote server as tom who (obviously) exists on the remote server but not the local server. I ...
3
votes
6answers
79 views

Use a shell not installed on remote machine

Given the scenario: Remote machine: SSH server; user does not have admin privileges; Local machine: SSH client; user has admin privileges. If user, logging in to remote from local, wishes to ...
0
votes
1answer
444 views

What is the default idle timeout for OpenSSH?

I can't seem to find an answer to this simple question, which I need for some compliance documentation. On a default install of CentOS 6.5 (OpenSSH 5.3p1-94.el6), after how long of being idle will ...
2
votes
0answers
67 views

How does ssh work when client and host are on the same machine? [closed]

I illustrate my question with the help of docker containers but this example is orthogonal to the rest of the problem. In fact any program that allows the use of bridge interfaces and ssh would do. I ...
2
votes
1answer
60 views

ssh to different server based on user?

Is there a simple way to have my router forward ssh logins for certain user names to a different server on my internal network? For example, ssh router@url would log me in as router on the router and ...
1
vote
1answer
46 views

Accidentally garbled a bunch of file names in /tmp… ssh keys asking for passwords

I accidentally garbled the file names of the contents of my /tmp directory (don't ask) to the point where they're not recoverable. Since doing so, I'm always asked for the password to my ssh keys ...
4
votes
2answers
66 views

Inconsistent redirection behavior ssh interactive vs commands

These work, ssh remote 'echo hi > hi.txt' echo hi | ssh remote 'cat > hi.txt' but this does not work ssh remote sh -c 'echo hi > hi.txt' I expected to produce a file on remote named ...
0
votes
1answer
26 views

Deamon openvpn configuration file with .conf?

In the video connected to a Linux to another Linux via SSH, the second openvpn daemon already started and configured with user/password requested at the entrance. http://youtu.be/tSNCE6j2zxM How do ...
2
votes
2answers
67 views

Why does the while cycle skips and only reads the first line?

$ ls testscript.sh testservers.txt $ cat testservers.txt serverA IMM 10.2.3.4 USERID PASSW0RD serverB IMM 10.2.3.5 USERID PASSW0RD $ $ $ cat testscript.sh #!/bin/bash # test them.. egrep ...
1
vote
1answer
248 views

slow ssh login to a remote machine

I am experiencing slow ssh login from a machine to a remote machine. The verbose of ssh is shown below in two broken blocks. ssh freezes for 15 seconds in the below shown block. [root@zabbix ~]# ssh ...
6
votes
2answers
2k views

XAUTHORITY environ variable set repeatedly on every login

I am running a Suse Linux 11.04 system. My problem is that when I do a fresh login into a shell as root, a new Xauthority file of the form xauth***** gets created in the /root/ directory. Upon exiting ...
2
votes
1answer
58 views

Only apply Match keyword to single Host in ssh config

I have a host which I ssh into. Sometimes I'm inside the same network, and can ssh directly into it, other times I'm outside it and I need to use a proxy. Because ssh via the proxy server is much ...
2
votes
1answer
6k views

Meaning of “Connection closed by xxx [preauth]” in sshd logs

We have a Windows batch script, which connects automatically to a linux server via PLINK (putty). There is NO public private key authentication, the user and the password are in the script. On our ...
0
votes
2answers
61 views

RSA keys demanding nonexistant passphrase [closed]

I need to automate a script that logs into a server. I made an RSA key and upload it to the server's authorized_keys file: desktop$ ssh-keygen -f ~/.ssh/id_rsa_marge -P '' -t rsa desktop$ chmod 600 ...
2
votes
0answers
143 views

iptables rule to transfer UDP through a SSH tunnel

The problem I have two programs that runs on two distant computers and communicate through a specific protocol. All I know is that this protocol only communicates through UDP and uses the ports 1101 ...
5
votes
1answer
252 views

How to rollback network configuration changes done over SSH in case of failure?

I'm about to change iptables configuration and interface speed and duplex settings over SSH. What are the possibilities to rollback the changes in case of host becomes unreachable? I guess simple: ip ...
2
votes
1answer
13 views

Is it possible to show on open/forwarded session in KDE?

When I need to do some longer computation, I leave my computer unattended and just lock the screen. When I log in later to see how progress is going from a remote computer using ssh, it'd be great if ...
3
votes
1answer
63 views

Use ssh without trying ssh-keys

If I try to connect to a certain server with ssh example.com ssh aborts with Too many authentication failures because I have more than 5 ssh keys in my .ssh folder and it loops through all those ...
2
votes
1answer
25 views

optirun and ssh -X

I would like to run a remote OpenGL program through ssh tunneled with the -X option. My laptop has Optimus so anything using OpenGL has to go through optirun (bumblebee). This would explain why I ...
1
vote
1answer
65 views

Can I switch to another process in another tty# terminal from an ssh terminal?

Here's the deal. I have a Linux Mint 15 server running a web server, an ssh server, and a minecraft server. When I go back to college after the summer, I want to leave my machine at home (6 hrs away) ...
3
votes
2answers
37 views

append something else before ssh-copy-id

Im using this ssh-copy-id command but before I add the public key I would like to add some stuff like, new line and Name. For example: new line #Name of the person pub.key here ..asdadsdad ...
0
votes
2answers
33 views

Can't ssh to github from a remote machine: what should I do?

I am sshing into a remote server. From the remote server, I want to be able to ssh to github. I don't want to put my private key on the remote server, because other people have access to the ...
0
votes
2answers
127 views

ssh public key copying

This question is repeating from Stack Overflow because i don't get answer from there. I'm trying to make a simple script that will import the public key to other servers. I have made 2 options you ...
1
vote
1answer
40 views

SSH key authentication works with /usr/sbin/ssh -d, does not with the daemon?

CentOS x64 6.5: if I connect as root to my server and do the following: service sshd stop /usr/sbin/ssh -d I'll able to connect as user using public key authentication from my development machine: ...
2
votes
1answer
401 views

How do I build Lynx with SSL on Mac OS X?

I'd like to build and install Lynx on Mac OS X. I've found out that building is as simple as running ./configure, but I'm having trouble building with SSL support. I've downloaded openSSL. How do I ...
1
vote
1answer
46 views

Unable to access an http sevice forwarded using ssh

I forwarded a port from a remote server (which has Tomcat running on it) to a local port on my machine. Say, if the remote server address is http://myremoteserver.com:8080, I forwarded the port to ...
1
vote
1answer
94 views

Canot remove symlinks: after reboot, symlinks re-appear

Using ssh from BusyBox, I cannot remove symlinks: after rebooting the device, symlinks re-appear. ls -la shows that symlinks have been removed, but after rebooting device they re-appear again. Those ...
4
votes
6answers
683 views

How do I work out which port to log in on with SSH?

I have an Ubuntu 10.04 server setup remotely that I setup a while back. While I recorded the username and password, I seem to have been clever and changed the usual ssh port from 22 to... something ...
4
votes
1answer
49 views

How can I determine which SSH keyfile was used to authenticate a login?

We have a hosted CentOS 6.5 server in which we have a single user account. That account has been configured to use SSH keyfile authentication for the users who need to access it. I would like to be ...
0
votes
1answer
458 views

How can I mount a remote sshfs directory of an publicly inaccessible server on my inaccessible client machine?

This is an extension of the question by @Andrei How to mount remote SSHFS via intermediate machine? Tunneling? I'm in the same situation that I want to mount a remote directory, however the ...
2
votes
1answer
71 views

Including .bash_profile over ssh

I am trying to write a script that will: Copy files to a server (I already have a script copy.sh that does this task) ssh to that server cd to the directory where the files I just copied are run ...
7
votes
2answers
4k views

How can I set up SSH on Linux to log in password-less?

My Raspberry Pi is running the default Debian image and has SSH enabled. I log into my Pi as follows: ssh pi@<IP-address-of-my-Pi> I have to enter my password every time. Can I somehow make ...
0
votes
2answers
85 views

Access remote server after running ifdown eth0

I had a problem: Could not retrieve mirrorlist http://mirrorlist.centos.org/release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: ...
9
votes
4answers
13k 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 ...
0
votes
2answers
4k views

Running Commands on Remote Linux Server Using SSH

I am writing a Bash Script wherein I need to run some set of commands on a remote Linux server from my local computer using SSH. I want the results to be displayed on the terminal screen or dump the ...
1
vote
1answer
34 views

'script' session logging makes me exit twice

I'm using a solution described here to log my shell sessions, by adding this to the end of /etc/bash.bashrc: test "$(ps -ocommand= -p $PPID | awk '{print $1}')" == 'script' || (script -f ...
0
votes
2answers
124 views

SSH Server on Ubuntu not works

I wanted to start SSH server on Ubuntu 14.04 running on VirtualBox. I installed Openssh, sshd, etc., configured sshd_config to listen on ip, which I see in ifconfig and it not working. I'm starting ...
3
votes
4answers
1k views

rsync over ssh tunnel

---------- /| /| ------------ | Home | | | | | | Work | | |--------| |---------------------| ...
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 ...