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

learn more… | top users | synonyms (1)

15
votes
5answers
6k 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. ...
15
votes
4answers
8k 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
35k views

SSH new connection begins to hang (not reject or terminate) after a day or so on Ubuntu 13.04 server

Recently we upgraded the server from 12.04 LTS server to 13.04. All was well, including after a reboot. With all packages updated we began to see a strange issue, ssh works for a day or so (unclear ...
15
votes
2answers
12k views

How can I reconnect to a ssh session after a broken pipe?

So I was running apt-get upgrade on a server when the router decided it had been too long since it last made me angry: It dropped all connection. Moral of the story is to use screen a lot when you're ...
15
votes
2answers
588 views

What's the difference between login as user and changing users using su through root?

When you have a server of some sort you can access it through, e.g., ssh user1@ip and you can also do ssh root@ip to go to your root user with su priveleges and then go to su user1. In my thinking ...
15
votes
0answers
8k views

How can I use pulseaudio over ssh? [duplicate]

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 ...
14
votes
5answers
39k 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 ...
14
votes
3answers
28k 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 visit:...
14
votes
4answers
22k 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 "...
14
votes
1answer
12k views

Change terminal colour based on SSH session

Is it possible to automatically change the color of the terminal based on which server I am connected to through SSH? For instance, when I fire up the terminal it has the standard colors defined ...
14
votes
1answer
1k 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
2answers
872 views

What is the Ubuntu equivalent of OSX `chmod -h` flag?

In OSX I can set the permissions of the symlink itself (instead of the thing it points to using the -h). From the man page: -h If the file is a symbolic link, change the mode of the link itself ...
13
votes
5answers
24k 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 ...
13
votes
3answers
34k views

How to log off an user from SSH? [duplicate]

I am able to see logged-in users via the who or last command. How can I log off a particular user who login through SSH?
13
votes
3answers
57k views

Run a nohup command over SSH, then disconnect

I want to execute a script, start.sh on a remote server which runs this: nohup node server.js & Naively, I call SSH like this: ssh myserver <<EOF ./start.sh & EOF This starts the ...
13
votes
2answers
14k views

What does “pts/” in the output of w mean?

When I run w - to see who is logged on and what they are doing, i see this: USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user tty7 :0 08:14 10:32m 44:...
13
votes
3answers
22k views

How set the Message of the Day (MOTD) as Ubuntu Server?

I have this in my Ubuntu SSH Banner Message: Welcome to Ubuntu 13.10 (GNU/Linux 3.4.43+ armv7l) * Documentation: https://help.ubuntu.com/ No mail. Last login: Mon Dec 2 08:25:39 2013 I'd like ...
13
votes
5answers
11k views

Wake from hibernate on ssh request

Is there a feature (or aptitude package) in Ubuntu 10.04 that will wake my computer up from standby when it gets an ssh (or other webrequest). I've been trying to put my computer in hibernate/standby ...
13
votes
3answers
3k 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 ...
13
votes
5answers
127k views

SSH Connection Error: No route to host

There are three machines in this scenario: Desktop A : user@1.23.x.x Laptop A : user@1.23.y.y Machine B : user@192.168.z.z All the machines have Ubuntu 11.04 (Desktop A is a 64bit one) and have ...
13
votes
3answers
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
2k views

disable shutdown/suspend if there is other user logged in via ssh

I remember that in versions of ubuntu around 9.04 was possible to disable user to shutdown ( and maybe suspend too ) system if there was other user logged in.Something like policykit or similar. Is ...
12
votes
3answers
10k 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
1answer
14k views

Intellij unable to fetch from git

I've cloned an existing git repository. Git is working fine when I pull using command line. However, when I try doing the same from Intellij, it says Fetch failed. Fatal : Could not read from remote ...
12
votes
6answers
5k 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
3answers
33k 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 ...
12
votes
1answer
4k views

How can I adjust the default passphrase caching duration for GPG/PGP/SSH keys?

As far as I know, gnome-keyring-daemon caches passphrases for keys by default until I log out. I would like to set the default to something like "cache for 10 minutes". How can I do that in Ubuntu 12....
12
votes
2answers
4k views

Redirect existing windows via SSH and X11 forwarding?

Using ssh -X user@host I can start programs on the host and X11 forwarding allows me to see their windows on the remote machine. However, I'd like to be able to forward/redirect existing windows. How ...
12
votes
3answers
9k 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 maybe?...
12
votes
1answer
344 views

How to get terminal back after I suspend a computer over SSH?

I very often SSH into a computer just to send it to sleep. The problem is when it sleeps, it holds the SSH connection open (seemingly indefinitely). Here's what happens: oli@bert:~$ ssh tank oli@tank:...
12
votes
1answer
2k views

Use local button styles during forwarded X11 session over SSH

Is it at all possible to have a forwarded X11 session be styled with something other than the default X button styles? It doesn't even appear to use my server's actual styles seeing as both computers ...
11
votes
5answers
17k views

How can I disable/modify the SSH login banner for a given user?

How can I disable/modify the SSH login banner for a given user?
11
votes
3answers
8k views

ssh never ask for a password

Somehow my SSH never wants to ask me for a password. So I setup a VPS on some random server somewhere in the world and I want to connect to it with ssh. I can setup a key, but when I do this: ssh -...
11
votes
3answers
25k views

Sharing files in LAN through Samba or SSH

I am able to share files between two Ubuntu machine and Windows machine but I have these problems which I can't solve. When I share files between two Ubuntu machines via LAN Computer1 to Computer2. ...
11
votes
1answer
14k views

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

Assume I have access to an SSH server that supports tunneling, and I am on a PC that is running *ubuntu, how do I set up a local SOCKS proxy that tunnels the traffic through that SSH server before ...
11
votes
1answer
40k views

ssh-add command does not add my identity to ssh-agent

I just installed ubuntu 13.10 and I was about to add my identity to my ssh-agent so I open up a Terminal and did this bjorgvin@buntu:~$ ssh-add -l The agent has no identities. bjorgvin@buntu:~$ ssh-...
11
votes
1answer
3k views

Find Randomart of existing ssh key

I created an ssh key with ssh-keygen, and I got this output as a result: The key fingerprint is: 84:21:3d:ab:d5:5e:05:a0:b6:ab:0f:33:af:3b:3b:82 cidr@randombox The key's randomart image is: +--[ RSA ...
11
votes
4answers
7k views

Is someone trying to hack into my server? What can I do?

A few weeks ago I posted a question here about some ssh issues I was having with an Ubuntu 12.04 box. Fast forward to today and I am trying to allow someone else access to the machine, but they keep ...
11
votes
4answers
96k views

SSH error: Permission denied, please try again

I am new to ubuntu. Hence please forgive me if the question is too simple. I have a ubuntu server setup using amazon ec2 instance. I need to connect my desktop (which is also a ubuntu machine) to the ...
11
votes
3answers
6k views

How to disable the keyring for SSH and GPG?

How to disable the keyring for SSH and GPG ? I would like to keep the keyring for the wifi and other stuff. I'm using Ubuntu 12.04.
11
votes
1answer
2k views

How to give ssh access to trusted friend?

I've got a friend that I trust enough to give ssh access to one of my servers. To this end, I've created a user account for him. The box is accessible by key authentication only, not passwords. I'...
11
votes
4answers
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 ...
10
votes
5answers
6k views

How did SSH connect without Internet?

I have a WiFi router, connected by Ethernet cable to my Ubuntu desktop and Android mobile. I have sshd set up. The telephone-line-in cable to the router was cut. But both devices were still connected ...
10
votes
5answers
23k views

How can I access my Ubuntu phone over ssh?

Whenever I try to run apt-get install openssh-server I get the following errors: root@ubuntu-phablet:/home/hablet# apt-get install openssh-server W: Not using locking for read only lock file /var/lib/...
10
votes
3answers
67k views

How to copy file to another machine through terminal?

I have Ubuntu 10.04 running through VMPlayer. And I have another machine (Asus RT-N16 router). I am able to connect to the router with telnet and see its file system. How can I copy the file from the ...
10
votes
2answers
18k views

“This account is currently not available” error when trying to ssh

An error occurs when I try to make SSH connection: $ ssh -p 22 www-data@x.x.x.x This account is currently not available
10
votes
2answers
19k views

Can I specify a port for certain IP address in SSH's config?

A ssh server on 192.168.1.45 listens on port 2222. I know I can just add -p2222 or add an alias in ~/.bash_aliases, but is there a way to force a certain port when I ssh a specified IP?
10
votes
3answers
57k views

Why am I getting a “port 22: Connection refused” error?

I am getting a port 22: Connection refused error while connecting to a server. I have both the openssh client and server installed, and they are running. But still there is an error. Please help....
10
votes
1answer
617 views

I can't type a “b” when I'm in the command line

Update I can't even paste a b. I am trying to upgrade to Ubuntu 15.04 but I need to delete some files in the /boot directory. When I cd /oot I can't type a b. So, I thought, I will list the files in ...
10
votes
3answers
14k views

What causes SSH problems after rebooting a 14.04 server?

Why does rebooting a server running Ubuntu 14.04 give me 'Connection refused' errors? I see ssh: connect to host <IP-address-here> port 22: Connection refused but only for 14.04 and only after ...