SSH, otherwise known as "Secure Shell", is a method for securely connecting to a remote computer.

learn more… | top users | synonyms (1)

18
votes
3answers
17k views

How to get coloured terminal over ssh?

When I connect over ssh to remote hosts everything is just a single font/color. I would like to have colours like I do locally e.g. green for executable and blue for symlinks etc. And such that when I ...
17
votes
3answers
39k views

How to setup passwordless SSH access for root user

I need to configure a machine so software installation can be automated remotely via SSH. Following the wiki, I was able to setup SSH keys so my user can access the machine without a password, but I ...
17
votes
9answers
40k views

Server keeps asking for password after I've copied my SSH Public Key to authorized_keys

I have an Ubuntu Server, running in a Cloud. I created a user (git). In the folder /home/git, I have created the .ssh/ dir, and the authorized_keys file. But, when I put my SSH Public Key in the ...
17
votes
2answers
764 views

Accidentally typed password in username input, any logs to clear?

I have accidentally typed my password in SSH's interactive username prompt. Are there any log files that I should clear?
16
votes
6answers
57k views

How do I install a ssh private key generated by puttygen?

I set up my linux server to accept connections from my home PC by adding the public key generated by puttygen to the authorized_keys file. Now I'm trying to connect to the same machine, but this time ...
16
votes
5answers
10k views

How to speed up SSH login?

From outside of my house, whenever I login to my Ubuntu server using SSH, it takes about 6 seconds for me to get the prompt for password, however when I login to my web hosting server it takes about 1 ...
16
votes
5answers
12k views

X11 Forwarding over Gnu Screen, is it possible?

I use GNU Screen constantly. But, I've been trying to figure out if there is someway to get X11 apps to forward over screen when I am ssh-ing (Is that a word?). Currently if I try to run 'gedit' ...
16
votes
2answers
886 views

How to transfer the identity (SSH) of a machine to a new machine?

I am making a new Ubuntu machine as a server, which is supposed to replace an old one with older software. My question is: Is it possible to transfer/copy the credentials (in terms of SSH) of the ...
16
votes
5answers
20k views

Switch encoding of terminal with a command

One of the servers I quite often ssh to uses western encoding instead of utf-8 (and there's no way I can change that). I've started writing a bash script to connect to this server, so I won't have to ...
16
votes
2answers
56k views

Connecting to ubuntu server via ssh externally

I have recently installed ubuntu server (12.0.4) and intend to use it primarily as a file server. I am completely new to linux so this is a pretty big learning curve. Yesterday I was able to ...
15
votes
10answers
6k views

Long wait time on login

When I log in on my server I get this: No mail. Last login: Fri Nov 5 14:22:45 2010... then I must wait for 5 sec and then is ready... wolfy@ubuntu-server:~$ Is this wait time normal or should ...
15
votes
3answers
19k views

Where is the SSH Server Fingerprint generated/stored?

I installed openssh-server and created a key with ssh-keygen. I then attempted to test it using local port forwarding by doing ssh -L 8080:www.nytimes.com:80 127.0.0.1. However, the key fingerprint ...
15
votes
7answers
21k views

Where is “Connect to Server” for ssh connections in Unity?

Cannot find "connect to server" in 11.04, looks like unity doesn't have it. Is there other very similar way to connect to another Ubuntu computer via SSH? (not in terminal)
15
votes
4answers
68k views

Start ssh server on boot

I've been doing my google-fu, but I can only find outdated guides or guides pertaining solely to the server variations of Ubuntu. I need to set it up so that ssh server is run on boot, so I can ...
15
votes
4answers
5k views

Is there a GUI utility to mount remote filesystems over SSH?

Is there a GUI utility to mount remote filesystems over SSH (SSHFS)?
15
votes
3answers
40k views

sudo: no tty present and no askpass program specified

When attempting to run a remote binary using sudo on the remote box: ssh remotehost "sudo ./binary" I see this error: sudo: no tty present and no askpass program specified How can I work ...
15
votes
1answer
14k views

How do I tunnel and browse the server webpage on my laptop?

I run a web app in one of my lab servers, and I have already setup X11 Forwarding on those machines. Other lab members can tunnel through SSH, and browse that web app on their local browser at home. ...
15
votes
2answers
23k views

How to launch a new instance of Google Chrome from the command line?

Is there any way I can launch a new instance of Google Chrome from the command line? I'm not referring to opening a new window - I want a new instance. Here's why: Suppose I open Chrome and navigate ...
14
votes
2answers
4k views

Disable password access through SSH?

I'm setting up a server for backing up my desktop box remotely. I want to prevent remote password access to the server, permitting only users with private keys (AKA my desktop box) to access it. How ...
14
votes
3answers
18k views

How do I route my internet through a SSH tunnel?

Old Q How do I setup an OpenVPN server without root privileges? Is there a way to setup an OpenVPN server without root privileges? E.g. with configuration files in my home directory? If yes, how do I ...
14
votes
5answers
5k views

How do I suppress the “New release '12.10' available” message?

When I ssh into my Mythbuntu box, I get this message: Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64) * Documentation: https://help.ubuntu.com/ New release '12.10' available. ...
14
votes
5answers
23k views

How to secure ubuntu server from bruteforce ssh attacks?

I have my passwords secure, but I heard people complaining about perfomance of a server going down drastically when a bruteforce attack is taking place. How can I secure my ubuntu 10.10 server from ...
14
votes
6answers
15k views

How can I audit users and access attempts to SSH on my server?

I've had a few security problems with a server of mine, a few SSH users have been setting up fires aka giving problems. I would like to: Track user logins and logouts Track activity of these SSH, ...
14
votes
1answer
37k views

How do I set up SSH authentication keys? [duplicate]

Possible Duplicate: How can I set up password-less SSH login? I am using ssh to connect to a remote server. I am prompted to provide a password each time, but I recall being able to set up ...
14
votes
1answer
898 views

How should I manage a secure, personal ssh key?

I need to have a personal ssh key such that: I can back up a single file containing my private key, and restore it when I do a new install. The private key is never stored in unencrypted form ...
13
votes
9answers
56k views

Trying to do ssh authentication with key files: server refused our key

I'm trying to setup ssh authentication with key files in stead of username/password. The client is a Windows box running PuTTY and the server is a Ubuntu 12.04 LTS server. I downloaded puttygen.exe ...
13
votes
5answers
27k views

Is it possible to SSH through port 80?

I am behind a network firewall that doesn't let me ssh through the default port. Because of that, I can't push any bzr branches to my repository. I would like to know if it is possible to somehow ...
13
votes
3answers
71k views

How to set up remote desktop sharing through SSH?

Is there a way to view (and control) a remote desktop through SSH? I will not have physical access to the remote host machine.
13
votes
1answer
11k views

Host alias for ssh

There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them. I'd like to be able to use... ssh -p ...
13
votes
5answers
112k views

SSH Public Key - No supported authentication methods available (server sent public key)

I have a 12.10 server setup in a virtual machine with its network set to bridged (essentially will be seen as a computer connected to my switch). I installed opensshd via apt-get and was able to ...
13
votes
4answers
6k views

Automatically change Terminal colors on remote connection?

Is there a way to automatically apply a terminal profile when connected to a remote machine via SSH? I'd like more obvious visual cues that I'm connected to a remote machine than the user/host ...
13
votes
4answers
3k views

How do you manage SSH keys?

I have a server with multiple users which each have multiple authorized SSH keys. Is there any effective way (command line utility?) to keep track of which key belongs to who and to quickly remove/add ...
13
votes
1answer
6k views

How can I use pulseaudio over ssh?

I'd like to listen to music on my home server from work. Both are Ubuntu boxes running pulseaudio. It seems from researching that applications communicate to the PA server via TCP on port 4317, so I ...
12
votes
3answers
6k views

How do I backup ssh keys?

I am planning to do a fresh install of ubuntu 11.10 in my system. Before that i have setuped key based ssh authentication in this machine. Is it possible to take backup of those ssh keys, so that i ...
12
votes
1answer
29k views

Modify the SSH welcome message to include system IP address

I have had a couple of occasions where I was unable to remember the IP address for a given system but was, at the time, able to connect using the hostname. As an example, just now I wanted to set up ...
12
votes
3answers
7k views

How do I run a graphical application on a remote server when logged in through SSH?

I am trying to run gedit from an SSH terminal on Windows, connected to an Amazon EC2 instance running Ubuntu 12.04 Server and I am getting this error: Cannot open display: How do I fix it?
12
votes
7answers
13k views

ssh no longer allows public key authentication

My machine recently stopped accepting incoming public key authentication. I have an ubuntu 11.04 desktop that I ssh into from a windows machine. I use putty with pageant. I am able to connect but ...
12
votes
4answers
16k views

How can I have multiple terminal sessions through one single SSH connection?

I have an Ubuntu server edition running and I can SSH into it to perform various tasks. What I'd like is the ability to SSH into my server kick off a server application and then switch to another ...
12
votes
3answers
20k views

How do I edit the ssh motd?

I would like to add some fields to the ssh MOTD. MOTD today: Linux toker 2.6.31-22-generic-pae #69-Ubuntu SMP Wed Nov 24 09:04:58 UTC 2010 i686 To access official Ubuntu documentation, please ...
12
votes
4answers
11k views

Really verbose way to test Git connection over SSH?

When using GIT, I have problems with using GIT over SSH, and since it works just fine both from work, and at home with a different modem, it's obviously my home modem that is acting up. I have no ...
12
votes
1answer
14k views

How do I send a notify OSD message to a remote user via ssh?

Sometimes we need to send a message to a remote user. We can display messages on our local desktop using Notify OSD, but we are unable to send a message to the remote user's desktop. We tried the ...
12
votes
6answers
3k views

SSH tunnel logging?

I have a computer running SSH that I would like to give my friends access to, but I do not want them to use my internet connection through SSH tunnelling (although I'd like to do so myself). Is there ...
12
votes
1answer
10k views

How to use multiple ssh keys with different accounts and hosts

i have multiple ssh keys and i have also have account on bitbucket and github. how when ever i use pull it gives me error :/var/www/proj$ git pull origin master conq: repository access denied. ...
12
votes
5answers
15k views

How to run an SSH server without a static IP address

I have a powerful computer in the lab and I installed Ubuntu 11.10 64-bit on it. I want to install an SSH server on it, so I can reach it from home and even from my Android via ssh. But I haven't got ...
12
votes
3answers
8k views

Why won't ssh-agent save my unencrypted key for later use?

Every time I SSH into another server from our headless Ubuntu server I am asked for the password to my key file. Even if I have previously connected to the server. Do you have any idea why this ...
12
votes
3answers
2k views

'unreachable' home folder

Occasionally, when I log into my Ubuntu server, the prompt says jon@jon-server:(unreachable)/$. Running pwd at this point returns (unreachable)/, however echo $HOME returns /home/jon as expected. If ...
11
votes
5answers
16k views

Is there an SSH connection manager?

Is there an app (or GnomePanel plugin) that allows to store SSH connection information and open terminal on click? I know that Nautilus does that using Ubuntu's "Password and Encryption keys", but is ...
11
votes
3answers
50k views

Using scp to copy files from remote to home machine

This is probably a simple error, but I can't work it out. My computer hostname is Felix (hostname -f returns Felix) I am trying to move a file from my university account to my home computer using scp. ...
11
votes
3answers
22k views

How do I connect to a server with thunar in Xubuntu?

In Ubuntu running Gnome 2 you were able to select "Connect to Server" from the Places menu and you would get a graphical connection to whatever server you connected to. Example: How can you do ...
11
votes
3answers
2k views

How can I help someone (like granny) over SSH who is behind a NAT router?

For helping others quickly, SSH is very useful, especially combined with GNU Screen. It's common that users are behind a NAT router. Even if the user can configure the router, it takes some time to ...