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

learn more… | top users | synonyms (1)

12
votes
1answer
9k views

Unable to initialize frontend: dialog when using ssh

I am executing the following command over ssh in a testing environment, as root: ssh <remote_srv> "apt-get autoremove" In my sshd_config I have "PermitRootLogin without-password" and I have ...
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
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
3answers
11k 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: ...
11
votes
3answers
65k 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
5answers
91k 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 ...
11
votes
1answer
20k 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 ...
11
votes
3answers
25k 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
2answers
23k 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 ...
11
votes
4answers
19k 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 ...
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
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 ...
11
votes
5answers
9k 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
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
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
13k 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
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
9k 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
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 ...
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
2answers
21k 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 ...
10
votes
1answer
118k 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 ...
10
votes
1answer
11k 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
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 ...
10
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 ...
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
5answers
80k 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 ...
9
votes
3answers
19k 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
1answer
21k views

Copy folders (not one file) using SSH ubuntu? [duplicate]

I am trying to copy a folder to remote Ubuntu server using command line ssh connection, i understand it's doable to transfer a file using scp but i have many files in a folder iam trying to copy to ...
9
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, ...
9
votes
2answers
14k 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?
9
votes
7answers
7k 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
1answer
8k 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 ...
9
votes
2answers
35k 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
4answers
14k 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
267 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
2answers
40k 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 ...
8
votes
5answers
17k 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 ...
8
votes
2answers
422 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
14k 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
14k 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
3answers
14k views

git ssh :Permission denied (publickey)

I tried to use github so I followed the help doc. But when I used this command : ssh -vT git@github.com I got error like this: jacos@Jing:~/.ssh$ ssh -vT git@github.com OpenSSH_5.8p1 Debian-7ubuntu1, ...
8
votes
2answers
15k 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 ...