OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol.

learn more… | top users | synonyms

40
votes
3answers
30k views

Does ssh key need to be named id_rsa?

I have come across this problem a couple of times when creating build servers with keyed authentication. I was wondering if anyone else has experience this. I have a couple of keys for my current ...
30
votes
2answers
38k views

ssh: automatically accept keys

I've written this small utility script: for h in $SERVER_LIST; do ssh $h "uptime"; done When a new server is added to $SERVER_LIST, the script is stopped with: The authenticity of host ...
28
votes
10answers
233k views

How to solve 'Connection refused' errors in SSH connection?

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty. The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error ...
17
votes
5answers
67k views

passwordless ssh not working

I've tried to setup a password-less ssh b/w A to B and B to A as well. Generated the public and private key using ssh-keygen -trsa on both the machines. Used the ssh-copy-id utility to copy the ...
15
votes
2answers
44k views

Connecting to ubuntu server via ssh externally

I have recently installed ubuntu server (12.0.4) and intend to use it primarily as a file server. I am completely new to linux so this is a pretty big learning curve. Yesterday I was able to ...
12
votes
1answer
8k views

I am getting a Putty attempted incorrect protocol errors when I SSH into my server from Windows

I have had Putty connecting via SSH to my Ubuntu 12.10 server for several months. Yesterday I began to get the following error every time I connect: PuTTY X11 proxy: wrong authentication protocol ...
11
votes
2answers
9k views

openssh server: rejected send message

When I tried to restart the ssh server on my ubuntu box, I got me@me-one:~$ service ssh restart restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=3354 ...
9
votes
3answers
4k views

How to enter the Default Keyring password via the command line?

Is there a way to enter the default keyring password using the command line? For instance: You have a remote setup of Ubuntu 10.10 thats set to auto login. You don't want to remove the keyring ...
8
votes
3answers
43k views

How to set up remote desktop sharing through SSH?

Is there a way to view (and control) a remote desktop through SSH? I will not have physical access to the remote host machine.
8
votes
1answer
6k views

Host alias for ssh

There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them. I'd like to be able to use... ssh -p ...
8
votes
1answer
127 views

How do I re-issue OpenSSL snakeoil cert?

In light of the recent heartbleed fiasco and whatnot I too have been scrambling to up security on some servers. My question is how do I reissue the Snakeoil cert that comes with Openssl? The cert ...
8
votes
1answer
6k views

NX/SSH remote access with Remmina

After many days and a lot of frustration, I managed to get freenx to work on my home server. I can connect to it with nomachine's linux client, but I want to use Remmina for this purpose. The problem ...
8
votes
2answers
5k 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 ...
7
votes
2answers
58k 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 ...
6
votes
3answers
23k 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 ...
6
votes
2answers
33k views

How to solve: “Connect to host some_hostname port 22: Connection timed out”?

I have two Ubuntu machines. Both have openssh-client and openssh-server installed on them. ssh-ing from machine G (fresh Ubuntu 11.10 installation) to machine K works great. But ssh-ing from machine K ...
5
votes
1answer
6k views

What does 'without password' mean in sshd_config file?

I just installed Ubuntu 14.04 on my server and I was setting up all my config files when I came across this in my sshd_config file: # Authentication: LoginGraceTime 120 PermitRootLogin ...
5
votes
2answers
12k views

Connection timeout for ssh server

I'm trying to setup openssh-server, but I'm having some issues connecting. I changed the port to something non-standard (57757) and then set my router to forward to that port. On my LAN, I'm able to ...
5
votes
2answers
2k views

OpenSSH Two Factor Authentication

I'm using Ubuntu Server 13.04 and want to use OpenSSH for sftp. I have everything set up and the only thing not working is the Two Factor Authentication. Currently it asks for a password or the public ...
5
votes
1answer
5k 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 ...
5
votes
2answers
976 views

Server is dropping SSH connections, then not allowing me to log back on

I have an ESX box which I have loaded with two Ubuntu Server machines. During setup, I chose no additional packages to install as I just wanted a lightweight machine for testing. The first thing I ...
5
votes
2answers
566 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: ...
4
votes
1answer
118 views

Why do I've two entries per server in known_hosts file?

On my mac I've 1 entry per server in the ~/.ssh/known_hosts file, in Ubuntu I noticed there are two created per server. Why is that? Format is: |1|wwwwwwwwwwwwwww=|wwwwwwwwww= ecdsa-sha2-nistp256 ...
4
votes
2answers
5k views

ssh: connect to host xxxx@xxxx.in in port 22 : connection timed out

I am new to Linux and SSH. when I try to connect to a remote grid computer (for which I have access) I am getting connection timed out error. I have recently installed Ubuntu in my system. I also have ...
4
votes
1answer
19k 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: ...
3
votes
1answer
469 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 ...
3
votes
3answers
11k views

openssh-server package not available on 12.04.2

I have just done a fresh install of 12.04.2 and found out that i could not ssh to this PC. I tried to install openssh-server but it said that "Package openssh-server is not available..." What is ...
3
votes
2answers
4k views

SSH into Ubuntu 12.10 from a remote computer

I am trying to login to my Ubuntu 12.10 desktop remotely. I have the SSH server installed and it works fine when I am on the same network as the Ubuntu desktop. However, I am unable to connect ...
3
votes
3answers
1k views

SSH from external network refused

I've installed open-ssh-server on my home computer(running Lubuntu 12.04.1) in order to connect to it from school. This is how I've set up the sshd_config file: # Package generated configuration file ...
3
votes
1answer
2k views

How to address ssh-server with a subdomain for remote access?

I am trying to set up ssh-server on my Ubuntu 12.04 VM (running in VirtualBox on Mac OS X 10.7). I have a domain name, call it foo.com, and I'd like to make ssh available via ssh to linux.foo.com. (I ...
3
votes
2answers
4k views

SSH problem after update

Setting up openssh-server (1:5.3p1-3ubuntu7) ... Creating SSH2 RSA key; this may take some time ... Creating SSH2 DSA key; this may take some time ... start: Job failed to start Can't initialize ssh, ...
3
votes
1answer
314 views

Losing SSH connection when exiting from the main console login

I have installed openssh-server from Synaptics, as usual, on a brand new Ubuntu Desktop computer, 10.10, with all updates and patches implemented. If I have the local console logged in, I can SSH to ...
3
votes
2answers
444 views

How to monitor website stats from the terminal?

is there any way to monitoring the stats from my own website .. like example.com .. just via our terminal without installing plugins .. so we can see real time visitor and bots came and go at website ...
3
votes
2answers
3k views

How do I install FreeNX server so that it works correctly?

I've tried every single possible way of installing the server now, I've read every how to available and I still can't get it to work. Please let me know in which step I do wrong. I'm using ubuntu ...
2
votes
2answers
15k views

How to set up Ubuntu SFTP server?

I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home ...
2
votes
2answers
8k views

Cannot ssh into Ubuntu Server by hostname

I just set up Ubuntu 12.04 Server on an old box laying around, connected to my router via ethernet. I set up openssh-server as instructed for remote access, but I cannot ssh into it from my laptop ...
2
votes
2answers
631 views

SSH Key problem

I want to setup my home server to use ssh keys but when I follow the tutorial on https://help.ubuntu.com/10.04/serverguide/C/openssh-server.html for setting up ssh keys I get this: Bad port 'umask ...
2
votes
2answers
1k views

Can't connect to desktop via ssh

Trying to setup a remote ssh file server (sftp) I've done it before but for some reason with ubuntu 10.10 I cannot connect to the assigned ssh port. I setup the sshd_config file to listen on a ...
2
votes
2answers
562 views

How do I remotely patch openSSH to allow handshake obfuscation?

I believe that my Chinese ISP has started detecting and bandwidth-limiting SSH connections. I'm not using the default SSH port so I suspect that they are using deep packet filtering to detect the ...
2
votes
1answer
535 views

How to give restricted access to user

I have a home PC and I created a reverse port forwarding to a server. Now I would like to go access to some people to the Home PC through this server. I would like to control the access of the user on ...
2
votes
1answer
78 views

Can SSH with IP but not host name?

When I SSH directly to the server's IP address, it works. (ssh michael@10.1.10.129) For reference, here is the resulting prompt: michael@noranetserver:~$ However ssh-ing by name doesn't work like ...
2
votes
2answers
114 views

Unable to connect via SSH: port 22 error

I have two machines connected via the Ethernet cable. One machine is running Mac OS X , the other Ubuntu (13.10). I am currently able to connect to the Mac via SSH. However when I try login in on the ...
2
votes
1answer
5k 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
1k views

How to test plymouth via virtual machine?

I am trying to edit my splash screen but its really annoying to restart the computer everytime just to find out it doesn't even work. i read on an article that I can do a virtual machine via ssh but I ...
2
votes
2answers
4k views

How could I shutdown a remote host, in my network thru ssh, with a local host?

The question is simple. What would be the script I would have to use to shut down a computer in my network thru ssh. Normaly i would go to command line and: ssh desktop delik@desktop's password: ...
2
votes
3answers
4k views

Where to get complete offline installer for openssh-server?

I want to download a complete off line openssh-server package installer. I need the offline package to setup for my school project but I don't have the internet facility in the lab.
2
votes
1answer
541 views

ssh permission denied in terminal but not inNautilus

I have two Ubuntu machines on the same network. I installed openssh-server and client. When I try to connect through the terminal I get the following message: "Permission denied, please try again" . ...
2
votes
2answers
38 views

multiple ssh keys on home computer

I would like to be able to use ssh key to log into my web server via ssh and disable password authentication completely (to eliminate brute force from malicious ip addresses). So I am reading the ...
2
votes
1answer
211 views

Is it possible to use DD to obtain splited images from a hard-drive?

My piano teacher asked me to record one of his recitals with his iPod (3-4 generation, not so sure) and I did it. While trying to edit it, he accidentaly deleted it, I'm trying to recover. After some ...
2
votes
1answer
737 views

SSH Tunneling Suddenly Not Working

I have a home PC running Ubuntu 12.10. In order to make sure that my data isn't being monitored in public, I had in the past used a subscription VPN service. I decided to research alternatives and I ...