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

learn more… | top users | synonyms (1)

11
votes
3answers
11k views

How can I install Ubuntu on a device without a screen nor a keyboard?

This is tricky. I would like to install Ubuntu on a machine that is intended to work as server, and for some reason I do not have an option to connect a screen to it. I expect this may be similar to ...
11
votes
3answers
24k 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
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 ...
11
votes
2answers
3k 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 ...
11
votes
5answers
8k 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 ...
11
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
1answer
1k 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 ...
10
votes
3answers
5k 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 ...
10
votes
3answers
10k views

How do I kill a locked SSH session? [duplicate]

From time to time, SSH sessions to my servers just freeze up and then neither Ctrl+C nor Ctrl+\ do anything. How do I quit the session without just closing the Terminal it's in? Clarification: ...
10
votes
4answers
1k views

Identify the server I'm working at

How to identify which server you're on when using ssh from terminal? I have to ssh into 30 servers daily, and switch between them constantly. Currently I'm editing the tab name and writing the IP ...
10
votes
1answer
11k views

Mount remote directory using SSH

How to mount a remote directory using SSH to be available same as if it is a local directory?
10
votes
5answers
84k views

SSH problem - Read from socket failed: Connection reset by peer

I can SSH in one direction with no problems: OK: ssh user@computerA but the other way: ssh user@computerB I get Read from socket failed: Connection reset by peer. I don't even begin to know ...
10
votes
2answers
22k views

Remote login with graphical display manager (GDM, LightDM)

Is it possible to remotely (via ssh) make a login to GDM? I'll explain a situation in which I'd need this: I'm on my laptop and connect to my desktop via ssh. I realize there are some updates ...
10
votes
1answer
18k views

Unable to start sshd

I'm new to Ubuntu and trying to start sshd but having a lot of problems. I've tried uninstalling and reinstalling ssh by running sudo apt-get remove openssh-client openssh-server and sudo apt-get ...
10
votes
4answers
4k 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 ...
10
votes
2answers
8k 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 ...
10
votes
1answer
2k 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 ...
10
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. ...
10
votes
1answer
3k 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 ...
10
votes
1answer
9k views

Couldn't connect to accessibility bus

When using ssh with X11 forwarding, I am getting various errors and warnings when running gui applications. As an example, any time I am running gitg, I get the following warning: ** (gitg:15904): ...
10
votes
4answers
17k views

Open another terminal window with the same SSH session as original window

Is there a way to open a terminal window ( or tab ) with another instance of an open SSH session ? EDIT: I have a terminal window with a remote ssh session into a server. I want to open a new tab ...
10
votes
3answers
5k 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.
10
votes
5answers
2k views

Is syncing private keys a good idea?

Ubuntu One's Security FAQ indicates that Canonical encrypts connections and restricts access to user data. This all well and fine, and I do trust SSL for online banking and other things more valuable ...
9
votes
3answers
3k views

Use real browser instead of w3m on SSH connections

I am using Ubuntu as desktop and server OS. When I am logged in to the server via ssh on terminal and have to view a web-page (localhost) on the server I use w3m (w3m localhost). Unfortunately w3m is ...
9
votes
3answers
18k 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. ...
9
votes
7answers
6k views

“Remote host identification has changed” warning when connecting over SSH

I got this message today when trying to log into my server. What should I do? Whats going on? $ ssh 10.10.10.69 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST ...
9
votes
2answers
31k 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 ...
9
votes
2answers
19k 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 ...
9
votes
4answers
13k views

Log SSH activity

All, I have an Ubuntu host that accepts SSH connections. How can I log all commands that are run on a specific account that logs in via SSH? Thanks
9
votes
1answer
229 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 ...
9
votes
1answer
1k views

How to get server MOTD on non-server install

Is there a way to get the fancy MOTD that shows up on an Ubuntu Server install on my Ubuntu Alternate install? Like this: Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64) * Documentation: ...
9
votes
1answer
108k views

ssh: connect to host localhost port 22: Connection refused [closed]

Although This has been discussed, but still i am not able to solve this. Here is a quick review of what i did and how i got into the trouble: Installed Ubuntu 12.10, installed ssh, sudo apt-get ...
9
votes
2answers
38k views

Remote x-server with ssh -X

I am trying to start a remote gnome session using: ssh -X username@192.168.1.107 gnome-session Both client and server are Ubuntu version 12.04 I get the following (and not a lot happens)... ...
9
votes
1answer
2k views

How to remotely control Banshee via SSH?

Banshee has the ability to control its main window from the command line using commands like $ banshee --next However when running these commands over ssh as the same user it simply tries to launch ...
9
votes
2answers
1k views

Sync Music from Banshee via SSH to Android Device

i want to transfer my music to my android device via ssh. I do that wireless because i do not always want to plugin the cable to sync some files. Is there a way banshee can recognize my android device ...
8
votes
5answers
71k views

SSH Permission denied (publickey)

I have tried searching previous questions for answers to my question but all of the answers that have been suggested previously haven't worked for me. I am trying to connect to a linode (running ...
8
votes
2answers
402 views

Is it possible to use bzr on Launchpad without using port 22?

I'm trying to pull from and push to bazaar branches hosted at launchpad.net but my internet provider is blocking port 22. Is it possible to use port 80 or 443 instead?
8
votes
3answers
13k views

How to open the display from ssh login?

Is there any way to open the desktop display from terminal(ssh login)?
8
votes
2answers
7k views

How to set up an Ubuntu 10.04 machine to accept ssh requests only from within the local network?

I am about to install 10.04 (from bare metal to replace 9.04) and I want to set it up so that I can shh into the machine, but only from other machines on my local network. (I.e., I want to reject all ...
8
votes
5answers
13k views

How can I permanently save a password-protected SSH key?

I am using Awesome Window Manager How can I permanently add private keys with password? Inspired by the answer here I have added the private keys in ~/.ssh/config Contents of ~/.ssh/config: ...
8
votes
4answers
8k views

Key-based SSH login with Nautilus' “Connect to Server”

I tried loggin into an SSH server via Nautilus' "Connect to Server" feature by just leaving the password blank, but that didn't work. How do I connect to my server using the key I have on my system? ...
8
votes
2answers
6k views

How to get output from upstart jobs when logged in via SSH?

To monitor what my job definitions are doing, I would like to see text output from the jobs. That does not seem to be possible when I am logged on via SSH. I am having this problem with Natty 11.04, ...
8
votes
2answers
13k 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?
8
votes
2answers
27k views

SSH connection getting refused

I am new to linux and I am trying to establish a SSH connection with my friend's PC in the same LAN, but I am getting "ssh: connect to host 192.168.71.70 port 22: Connection refused". Both ways are ...
8
votes
3answers
6k views

Cannot ssh into new Vagrant install of 13.04

I used the Vagrant image for 13.04 from http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box to create a new virtual machine and tried to connect to it ...
8
votes
4answers
3k views

Is there a way to have wall messages show to desktop users?

Let's say I'm away from home, ssh-ing on my home computer. For any reason, I need it rebooted. # shutdown -r +10 This sends a warning message every minute via wall, which is completely invisible ...
8
votes
1answer
4k views

How to mount a remote (over SSH) directory to be available like a local directory (incl. in shell, not just in Gnome)? [duplicate]

I've got my files (mostly text/code, nothing of heavy like videos etc.) in a directory on a remote server which I can only access by means of SSH. Can I mount it on my laptop to use it seamlessly from ...
8
votes
1answer
7k 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 ...
8
votes
1answer
5k views

Saving SSH shell links in launcher like putty

I mean how can I bookmark a ssh root@ip command in the launcher so when I click on the icon and a shell is prompt to me asking credentials for the connection to the server shell?
8
votes
1answer
2k views

How to remove legal notice from MOTD / Banner for non-root users

Problem: The following text is shown for all non-root users when logging in via SSH: The programs included with the Ubuntu system are free software; the exact distribution terms for each ...