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

learn more… | top users | synonyms (1)

23
votes
2answers
8k 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 ...
18
votes
5answers
98k 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 ...
9
votes
1answer
13k 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
3answers
32k 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?
5
votes
2answers
3k views

Sending keypresses to remote X session over SSH

So I'm sitting in our living room on an Ubuntu laptop working while also watching a TV that is controlled by an Ubuntu HTPC. I have an IR remote set up and can control everything I need to with it, ...
24
votes
4answers
62k 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 ...
9
votes
1answer
982 views

Prevent machine from sleeping when SSH connections are on

I am trying to save power by switching desktops to suspend mode when they are inactive. But many desktops are also accessed via SSH by their owners. There is a wakeonlan solution deployed to enable ...
5
votes
2answers
879 views

How to securely ssh into a machine at home over the internet

I will be travelling shortly, and I have a machine that run runs a bunch of cron jobs etc. I need to log in remotely to check the results of the jobs run and to do some work on the machine. Here are ...
5
votes
1answer
8k views

how to connect to a remote desktop behind a router?

Here's my setup: I have a laptop that I roam around everywhere with, and I have a desktop computer at home that is connected to the web using a router with NAT. My objective here is to create an SSH ...
5
votes
5answers
37k views

ssh: connect to host myremotehost.com port 22: Connection refused

So I am trying to get ssh working on my server. I can connect on my local network with the local ip address of the server perfectly fine. When I try to connect remotely (through a domain name that I ...
4
votes
2answers
318 views

My computer stops seeing the other computers on my network

I'm running Ubuntu 11.04. Sometimes my computer stops seeing the names of the other computers on my network. So I can no longer log into another computer by typing the hosting name e.g. ssh ...
2
votes
1answer
14k views

Is it possible to “SSH” into my virtual machine remotely?

My home computer: Windows 7 laptop also running an Ubuntu virtual machine via VirtualBox with a bridged network connection (as opposed to NAT). My work computer: A Windows 7 computer. I want to SSH ...
2
votes
3answers
2k views

After restart, how can I ssh into my system?

I have restarted my system remotely, but now when I try to ssh, I get the message ssh: connect to host desktop.hostname port 22: Connection timed out And when I try to ping it: PING ...
15
votes
1answer
19k 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): ...
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)?
9
votes
1answer
542 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
4answers
2k 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 ...
9
votes
7answers
8k 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 ...
8
votes
2answers
11k views

Bizarre SSH Problem - It won't even start

I recently got Ubuntu 12.04 Precise, got it up and running with some MediaWiki software, static IP on the box and router and was able to access the main page even from a cell phone. Everything seemed ...
7
votes
2answers
17k views

Encrypting Files and folder through terminal

I am new to part of encryption on Ubuntu . Is there any way to encrypt files and folder with password from terminal ? without using truecrypt or cryptkeeper etc.
7
votes
3answers
1k views

How do I inhibit suspend from the command line?

Is there a way to inhibit suspend/hibernate from the command line. I want to ssh into my home computer and not have it suspend while I'm working on it.
6
votes
2answers
22k views

Copy files from a server via ssh to dropbox.

I have a user in a linux server (Debian) with ssh access, and have some files on it. I need to copy the files to my Dropbox. but I donot want to copy to my Dropbox in my PC and Laptop, I want to first ...
5
votes
1answer
2k views

How do I get an ssh -X session to use the host's sound settings

I have a USB sound card on a host system which has all my music, and to which I have connected my living room speakers. I would like to use my laptop to ssh -X into that system and run my favorite ...
4
votes
1answer
4k views

Editing remote files via SSHFS mount very slow (Sublime Text)

I'm trying to nail down the best way to work on projects located on a remote server. I use Sublime Text and I've been experimenting with SSHFS on Ubuntu to mount the remote directory locally and then ...
4
votes
4answers
3k views

Invalid SSH key error in juju when using it with MAAS

This is the output of juju from a clean install with 2 nodes all running 12.04 juju bootstrap - finishes with no errors and allocates the machine to the user but still no joy after juju ...
4
votes
4answers
24k views

Paswordless Rsync Over SSH Without Key Authentication [Un-Safe]

I want to set up an RSync job that would connect through SSH. I have my computer ( backup@myhost ) and the remote host ( test@remhost ) and I need to backup the folder ~/something with all it's ...
4
votes
5answers
5k views

How do I suspend over ssh?

I guess this question is pretty much the same as How to configure dbus to allow ssh-user to suspend server?; except I wanted to formulate it better. Assume I have an Ubuntu server running nonstop, ...
3
votes
1answer
4k views

Is it possible to save ssh password in remmina?

I have remmina 0.9.99.1 (1.0.0) in ubuntu precise 12.04 Can I save the ssh password so that it won't prompt me again for it
3
votes
2answers
3k views

How to change what xdg-open does with ssh://user@ip liniks

xdg open has ignored my directives. I have found several threads regarding how to open ssh://user@ip links (these are in our monitoring software). I have run the following commands: gconftool-2 -s ...
2
votes
2answers
1k views

Unable to ssh remote unlock encrypted ubuntu server 15.04 using dropbear/initramfs

So I'm trying to set up a brand new Ubuntu 15.04 headless server with full disk encryption and remote unlock capabilities. I've done this successfully on a raspberry pi running Raspbian-Wheezy, and ...
2
votes
2answers
9k views

How to ssh from windows to my ubuntu machine in the local network

When I'm trying to ssh to my local ubuntu server from the gitbash on my windows machine Im getting this error: $ ssh 192.168.1.11 ssh: connect to host 192.168.1.11 port 22: Bad file number Other ...
1
vote
1answer
1k views

Started tightvncserver on Ubuntu, but viewer complains about missing .xsession file

I've never used VNC before, although I used X11 about 25 years ago. I'm trying to set up a VNC connection between my Windows laptop and a box I ssh to from an external gateway. From my Win7 laptop, ...
1
vote
1answer
478 views

Public key authentication unsupported by web host. Method to avoid entering password?

Unfortunately, my web hosting plan does not allow public key authentication. Apparently, this method is available to VPS and dedicated server customers only. I've backed up my Ubuntu 11.10 machine ...
11
votes
2answers
21k 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 ...
8
votes
2answers
29k 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
5k views

How to open ssh://username@hostname link

I want to open link like "ssh://username@hostname" with ssh. I think xdg-open can help me(xdg-open ssh://username@hostname), but I don't know how. How can i do it?
8
votes
1answer
5k 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 ...
5
votes
2answers
6k views

Error `could not load host key` when trying to recreate SSH host keys

I am trying to recreate the ssh-server host keys. I have at least two ways to do this: With dpkg-reconfigure dpkg-reconfigure openssh-server This works fine, but I cannot give the key length ...
5
votes
1answer
7k views

Limit SFTP user access to specified directory

I have a Ubuntu 14.04 server installed with open ssh. I'd like to configure sftp for customers to be able to download files only. In other words, I put files in a directory that they are jailed to. ...
5
votes
2answers
4k views

Ubuntu 14.04 Nautilus “connect to server…” window changed

I'm having trouble because I want to connect to my EC2 server through my new installation of Ubuntu 14.04 and I just can't. I already downloaded the .pem key and added my server to the ~/.ssh/config ...
5
votes
3answers
477 views

How do I set up a server for SSH?

At my workplace (a university) we have two Ubuntu servers. One is a teacher server and the other is a student server. I am currently setting up a new server to replace the existing teacher server. ...
4
votes
2answers
49 views

Passwordless SSH only works when I'm already logged in on SSH

So I set up passwordless ssh using the following: How can I set up password-less SSH login? After setting this up, I'd expect that I wouldn't need a password to ssh. My issue is that on my first ...
4
votes
1answer
36k views

Why do I get “connection refused” errors connecting to a server via SSH?

I've installed Ubuntu 12.04.1 LTS on it with the LAMP stack. I can ping it but when I try to connect to it the server can't be found. When I try to connect with WinSCP I get the error Network error: ...
4
votes
2answers
17k views

Installing libwww-perl on Ubuntu 12.04,SE

I have an Ubuntu 12.04 server edition which I ssh into. I am running Perl scripts on this server but it fails when I load 'use LWP::UserAgent;' with error message: Can't locate LWP/UserAgent.pm in ...
4
votes
4answers
18k views

“Can't open display” even after access with xhost

I'm trying to run a graphical program remotely, without using ssh. I've set the display variable on the server (let's say server.com, Linux, not ubuntu, and no su rights) to point to my workstation ...
3
votes
2answers
1k views

Persistent SSH Connection

I use this command to make an SSH tunnel to a remote server. ssh -D localproxy:9999 -C tcx0@111.222.333.444 I also made a shell script using expect command to auto process entire process with also ...
3
votes
1answer
675 views

Unable to write to /var/log/btmp

I recently had a bunch of entries in my btmp log [because of a boneheaded move on my part] I resolved the issue, but now I would like to clear that log, I copied it somewhere else for reference and ...
3
votes
1answer
3k views

Keep the running processes alive when disconneting the remote connection

I have a bunch of processes on a server initiated by ssh from my own machine. It is now about three hours that my machine's Ubuntu has got hung and I do not see any other options but restart. Is there ...
2
votes
1answer
5k views

ssh: connect to host HOSTNAME port 22: Connection timed out

I have trouble connecting to a server with ssh from my Lubuntu 14.04 computer, although it can be done from other machines. I can't get to the address online either (others can). Am currently using a ...
2
votes
2answers
241 views

How to grant access to a folder which resides in a folder owned by another group

Situation: Group A requires access to /path/to/dir/foo to upload files through ssh or ftp, but the directory in question: /path/to/dir/foo is owned by group B (if you'd like: /path is recursively ...