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

learn more… | top users | synonyms (1)

4
votes
2answers
6k 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 ...
4
votes
1answer
28k 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
11k 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 ...
3
votes
2answers
227 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
2answers
845 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 ...
3
votes
1answer
2k 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 ...
3
votes
4answers
14k 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 ...
2
votes
2answers
99 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 ...
2
votes
1answer
719 views

Set user- or group-specific MOTD in SSH

I would like to disable or change the MOTD shown on SSH login on a per-group/per-user basis. This question on SuperUser has an answer stating that I can use Match blocks in sshd_config. However, man ...
2
votes
2answers
4k views

How to use rsync via ssh with rsa key passphrases?

How can I use rsync with passphrases? All googled "solutions" i found use passphrase-less keys which seems no real option. i am runnning 2 ubuntu servers 12.04.2 LTS.
2
votes
2answers
2k views

How do I mount a drive so that it is readable by me?

I'm working with over SSH with an external hard drive connected by USB. I know I can manually mount a drive with the following command: sudo mount /dev/sdc ~/dirToMountTo The problem is, if I ...
1
vote
1answer
261 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 ...
1
vote
2answers
5k 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
3answers
7k views

ssh connection “permission denied” message

When I execute the command ssh localhost (in Ubuntu 10.10), it will display the error message "permission denied(public key)." What may be the problem? Is there any problem in sshd_config file in ...
0
votes
5answers
128 views

quick-and-dirty file sharing on a LAN

I have a rather large file(s), which I'd like to share between two Linux boxes on the same network. I'm somewhat familiar with scp, but how do I configure it on the host? That is, how does the host ...
0
votes
2answers
133 views

Accessing a remote file via ssh on Ubuntu 12.04 [duplicate]

I have a text file on one of my computers that is running 12.04. I was planning to use ssh to allow for another computer to read this text file. The issue is that the system that I am working with is ...
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 ...
6
votes
2answers
6k views

Can I ssh (into a mobile device) via USB?

I have a tablet with a USB connection to a host computer. (Ideally the host is running Windows, but if absolutely necessary I could switch the host to be Ubuntu also.) I want to be able to SSH into ...
5
votes
1answer
140 views

autossh -ND at Ubuntu boot

I have setup key-less login at a remote server. I use the remote server for tunneling my data. I want my local system to ssh into the remote server at boot time automatically. I tried the solutions ...
5
votes
2answers
741 views

Everytime i am trying to connect to my box using SSH, its failing not connecting

From any other PC doing SSH to my Ubuntu 11.10,is failing. My network setup: Telenet ISP (Belgium) > Fiber cable < > RJ45 cable straight > to Ubuntu PC Even the SSH is running: Other PC: ...
5
votes
1answer
3k views

How do I secure vnc/desktop sharing? [duplicate]

I have a bunch of laptops I need to set up for our support dept and I need to be able to access/monitor them at all times. The laptops run ubuntu 11.10 gnome shell 3.2 and all have the desktop sharing ...
5
votes
3answers
8k views

pgadmin3: Unable to initialize gtk, is DISPLAY set properly? [closed]

I'm having some trouble getting pgadmin3 to run on a remote server. I'm logging in to the server using SSH with the -X option. When I first installed pgadmin3, I was able to launch it using the ...
4
votes
1answer
10k views

Ubuntu - saying your security settings have blocked an application from running with an out-of-date version of java

I have this new problem since 2014 begin. I cant remotely login to this enterprise network for giving them support. Its keep showing this new error. How to fix it please? EDIT:
4
votes
0answers
1k views

Boot from USB, setup through ssh [duplicate]

I've got a new home server with no keyboard, monitor, etc., but with the ability to boot from USB. I want to install Ubuntu Server on it, but can't work out how. If possible, I want a disk image that ...
4
votes
4answers
4k views

How can I make ssh-copy-id use a port other than 22?

How can I make ssh-copy-id use a port other than 22? I tried it with -p but I get: ssh-copy-id -p XXX XXXX@XX.XX.XX.XX Bad port 'umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ...
4
votes
2answers
1k views

How do I approve specific computers to ssh into a machine with password authentication disabled?

The instructions in help.ubuntu.com/community/SSH/OpenSSH/Configuring recommend disabling password authentication so that "it will only be possible to connect from computers you have specifically ...
3
votes
2answers
445 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 ...
3
votes
1answer
13k views

ssh refusing connection with message “no hostkey alg”

My SSH connections worked well, but from last week SSH from my laptop to my board refusing connection. I can make a SSH connection from the board to laptop, but not vice-versa. I tried that with my ...
2
votes
1answer
90 views

Hadoop in Ubuntu : Unable to create Passwordless SSH

I am learning Hadoop and trying to create the passwordless SSH following the procedure in define in the Book : Hadoop: The Definitive guide Configuring SSH Pseudodistributed mode is just ...
2
votes
1answer
110 views

Messed up with my ssh_config file. How can I recover the original file?

I was setting up ssh on Ubuntu. I accidentally copied the contents of sshd_config in ssh_config file! Is there a place where I can find the original one? Fortunately I didn't touch the ssh_config. I ...
2
votes
1answer
318 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 ...
2
votes
1answer
186 views

Trying to understand my first server set up

I am trying to set up my first server and stack. I spent a week trying to do it on a virtual machine but could never get the ports to forward correctly so today I just dedicated the full machine. I ...
2
votes
2answers
4k views

Using authorized_keys with git

I have transfered my ssh key from my root to my user account by ssh-copy-id command so now I have these files in my .ssh folder user@user-php:~/.ssh$ ls authorized_keys config id_rsa id_rsa.pub ...
2
votes
1answer
205 views

Move window from display :0.0 to display :10.0?

I'm using Cygwin to login to my lubuntu box: ssh -y *user*@192.168.12.37 I can easily use byobu to redeem my cli session. Is there a way to move a running window from display :0.0 to my remote ...
2
votes
1answer
158 views

how do I use ssh with key access in 11.10

I've used ssh before and password access from my new asus k53by laptop with a fresh 11.10 install to dev server works fine. I wanted to set up key access for added security and ease of scripting and ...
1
vote
3answers
122 views

Multiple Users Private / Public Keys

I am currently undergoing a project of maintaining a server with certain simple services (mail, web) for a group of thirty users. I would like to use pub/private keys but I guess unsure of their use. ...
1
vote
1answer
228 views

login to “front end gui” from ssh (together with Synergy)

So, I have 3PC on my desk, all running ubuntu 14.04 64bit. and all running the latest version of Synergy, so that I only use one keyoard and one mouse to control 3 PCs and 4 monitors. this works ...
1
vote
0answers
167 views

Moved a VBox guest to a physical host; network is up, but OpenSSH is not. Why?

I've come a cross an issue I really don't understand. I wanted to install Ubuntu Server on a headless box I have. The desktop sits right next to it, and adding and removing disks are very easy, so I ...
1
vote
1answer
301 views

Remote backup with a file by file encryption?

I want to do remote backups over Internet (so limited bandwidth) from an Ubuntu server to a iMac machine (POSIX compliant) supporting both ssh and rsync. I do have sudo rights on both machines. The ...
1
vote
2answers
653 views

How to forward local port 80 to another machine?

I want to port 127:0.0.1:80 to the other machine via SSH, how can I do that? I tried adding -R 8000:localhost:80, but it doesn't work. By the way, PHP is also installed on localhost, maybe that's why? ...
1
vote
1answer
10k views

Configure OpenSSH server and router to accept SSH connection over internet?

I want to access my PC from anywhere. I'm able to connect to the PC within the same LAN using the local IP. However, outside the local network I see a connection time out error. How can I configure ...
1
vote
1answer
2k views

How to reset my password without rebooting?

I lost my password to a VM running 11.04, but have ssh access via public key authentication. Is there any way I can reset the password without a reboot? (This is to avoid downtime of services it's ...
1
vote
4answers
5k views

No prompt after successful ssh login

After a successful login to my VPS the command prompt doesn't get displayed. I've ran ssh with -vvv and sshd with debug output, absolutely nothing is amiss. The VPS is Ubuntu 11.04, the client Ubuntu ...
1
vote
1answer
3k views

ssh not accepting public key

I recently installed ubuntu 10.04 and trying to connect to remote servers with SSH, which is failing to connect with public key. I created the DSA keys, then did a ssh-copy-id to the remote server ...
1
vote
2answers
4k views

How to automatically unlock private SSH key?

I have generated an RSA public / private key pair using ssh-keygen. However, I am prompted to enter the password to unlock it the first time it is used each session. How can I automatically have it ...
1
vote
3answers
4k views

Can I create an SSH login script?

I have to log in to my school's Linux server for homework. I would like to be able to make a script or something for my desktop to save a bit of time (using Ubuntu desktop). Currently I log in using ...
0
votes
2answers
45 views

Connection refused even after installing openssh-server

I have been spending the last 4 hours trying to get my VNC connection to work. Eventually, I realized it was because my Ubuntu remote host was unable to host SSH connections- even though I had already ...
0
votes
1answer
43 views

Are there files and folders within /home that MUST be avoided when mirroring a user folder between different hardwares?

Say you have two computers with different hardware (two laptops or a laptop and a desktop) that you want to use alternatively. For example, I am using the comfortable desktop now, and want to mirror ...
0
votes
1answer
123 views

OpenSSH: hacked before set up?

Today I tried setting up OpenSSH on my computer with the hope of being able to connect to it from a different computer at work. This was my first time attempting to use open-ssh. I did the following ...
0
votes
1answer
221 views

How can I configure a second SSH key + user for a single server?

I have a SSH key which is passphrase-protected. Authentication to the server is by SSH key only, password authentication is disabled. Both the server and my desktop run Ubuntu 14.04 and authentication ...