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

learn more… | top users | synonyms (1)

5
votes
3answers
2k views

How can I run SSH as a different user on the same Ubuntu installation?

I am creating a script which runs a series of command that would download a website to a machine and sets up everything. So most of the commands require root access. For example adding a vhost in ...
5
votes
1answer
10k views

gedit “cannot open display” , on remote computer , using ssh - Ubuntu 12.04 [duplicate]

Possible Duplicate: How do I run a graphical application on a remote server when logged in through ssh? I am getting the following error message when using ssh to log into a remote ...
5
votes
1answer
766 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: ...
5
votes
6answers
48k views

ssh -X “Xt error: Can't open display: :0.0”

I'm trying to open xterm on my remote server (Ubuntu Server 10.04) with ssh: ssh -X name@machine xterm but the error returned is: xterm Xt error: Can't open display: :0.0` I googled and tried ...
5
votes
1answer
1k views

Add an SSH option to an sftp URL in nautilus

I'm connecting to a remote server in Nautilus using an URL of the form sftp://server.com. However, due to a thing with that server I need to add an option when connecting via SSH, otherwise the login ...
5
votes
3answers
604 views

Can I log to a non-default shell?

I love fish. I have a nice Ubuntu 8.04 Server running some services. So I edited the /etc/passwd file, as I did in the past, to change my default shell from bash to fish. And ,yes, I made I typo (BTW: ...
5
votes
1answer
2k views

how to backup/restore the host key in ssh server

I have a ssh server, and some clients have login it via key login. So the host identity of server has been stored in the known_host of clients. I want to reinstall the server, but I hope it never ...
5
votes
1answer
2k views

Open a new tab in gnome-terminal and have it automatically connect via ssh

I find myself ssh-ing into another machine a lot at work. So much so, that I use it more than simply using the terminal on my own desktop. I know that (normally) when I open a new tab, it will ...
5
votes
1answer
997 views

SSH remote user need to be logged in?

I'm trying to set up an SSH server. I put my public key in the authorized_keys file, made sure the permissions were correct, etc. When I restart the server (really just Ubuntu 12.04 desktop) and I ...
5
votes
2answers
2k views

Using Juju returns “ssh invalid key” error

Can someone tell me with piece of code is executed when i do: juju status. I'm running Juju on OpenStack and I want to deploy some services but when i do juju status it returns me an SSH INVALID KEY ...
5
votes
4answers
1k views

byobu and ssh-agent

byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried ...
5
votes
3answers
21k 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 ...
5
votes
2answers
10k views

Git ssh error: port 22: no route to host

I tried to use set up git and use it for github, then when I followed the help doc, but when I got to step 5 of the set up ssh keys section :Test everything out , When I used this command: ssh -T ...
5
votes
1answer
8k views

SSH into Ubuntu VM remotely

I dont have much experience on networking or linux, but I'm trying to ssh into an Ubuntu virtual machine from outside my home network. The Ubuntu virtual machine (VirtualBox) is running an a Debian ...
5
votes
1answer
188 views

How do I get rid of a notification?

I occasionally run applications that use the transparent notifications in the Ubuntu 11.10 desktop and they generally work fine for me except for when I'm running them over ssh with X11 forwarding. ...
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 ...
5
votes
2answers
950 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
3answers
999 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.
5
votes
3answers
2k views

ssh tunnel and receiving Web pages through the tunnel

I've tried to create a tunnel torward a client passed through a server, using the following command ssh -X -f admin@IP_server -N -L 4444:IP_client:80 but when try to open client:80 by firefox ...
5
votes
3answers
416 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. ...
5
votes
1answer
3k views

How do I secure vnc/desktop sharing?

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
1answer
935 views

Turning off XON/XOFF when SSHing via PuTTY

I have a fresh install of Ubuntu 9.10 on a rented dedicated server. When I ssh to it using PuTTY (on a Windows machine), I find it responds to Ctrl+S and Ctrl+Q as XON/XOFF transmission control ...
5
votes
3answers
292 views

Setting up ssh to a url

I have enabled ssh on one of my computer at home, so I can get to it from my main IP. No I have a domain where I forward it to my ip. Lets say this website is called melikecandycoveredfrogs.com ...
5
votes
4answers
6k 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 ...
5
votes
1answer
914 views

How do I setup multiple minicom / Cisco console server sessions without too much hassle?

I'm working on my CCNA and have 4 switches & 4 routers which make up my main lab. I bought two quad port USB to Serial (1 USB to 4 Serial) Adapters onto the ends of which I've attached 8 Serial ...
5
votes
2answers
758 views

Precautions during SSH [duplicate]

Possible Duplicate: How can I audit users and access attempts to SSH on my server? I recently had to give away my Ubuntu 12.10 root password to one of my friends so that he could SSH into ...
5
votes
1answer
570 views

Autoproxy's auto mode doesn't work

I don't if this is the right place to ask this question, so please let me know if I can get better answer elsewhere. I just moved to Ubuntu 11.04 from Windows Vista. I've been using Firefox ...
5
votes
1answer
926 views

What is the difference between “Connect to server…” and sshfs?

Can anyone quickly explain the technical difference between these two methods? Going to Places -> Connect to Server and select SSH (in GNOME) Using sshfs in terminal This probably boils down to ...
5
votes
2answers
517 views

ssh-agent is not used when ssh is launched from panel launcher (via `gnome-terminal --command`)

I have everything set up so that after I log in and add proper identity to ssh-agent using ssh-add from a gnome-terminal window, I do not have to enter the passphrase again when I invoke ssh myserver. ...
5
votes
2answers
551 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
2answers
5k views

Unable to ssh out anywhere - ssh_exchange_identification

I have a setup where I'm running Ubuntu 11.10 as a VirtualBox guest under a Windows 7 host, behind a restrictive corporate firewall. I have set up NAT from the host port 22 to Ubuntu's port 22; IT ...
5
votes
2answers
2k views

SSHFS files from one server to another

I am trying to find the most secure way to transfer files from one server to another. I have the following architecture: Currently I am using the main user salamis in order to mount the ...
5
votes
5answers
3k views

How do I get SSH to listen on a new IP without restarting the machine?

I have a few Ubuntu server boxes set up on ESX, and I changed the IP addresses via SSH. The moment I changed it, it dropped me off of SSH (as expected). After a restart it works 100% as expected and ...
5
votes
1answer
3k views

How can I increase the maximum number of simultaneous users to log in to a server?

I use ubuntu server 10.04 on a fairly good machine, with 2.40 dual-core processor and 2GB RAM. My users login with ssh or samba. I have setup LDAP with PAM to sync user accounts between unix and ...
5
votes
2answers
67 views

Cannot SSH from outside LAN despite port forwarding seems fine

Running Ubuntu 12.04, I've set up the OpenSSH server. I can connect from within LAN, but not from outside. I am using the same sshd_config file as on my other Ubuntu 12.04 machines (that sit in a ...
4
votes
4answers
15k views

What is the password for ``ssh root@localhost``?

I need to ssh to localhost using root account, by ssh root@localhost. When it prompts for passwords, I can not login with all possible passwords. On setting of localhost machine, regular user xxx and ...
4
votes
4answers
31k views

Finding the ip address of another computer on the network?

Is there a program which can tell me the ip address of a computer when is connected to my network? A list of names or ip addresses. For example when my wife is on my main desktop computer I can ...
4
votes
2answers
2k views

cat command - will it overwrite?

In order to pass the contents of one file to another we can, for example: cat ~/temp_minhakey.pub >> ~/.ssh/authorized_keys Let's say, we need to append more content to authorized_keys, but ...
4
votes
2answers
2k views

Move files with ssh

I know that I can copy files from my computers with scp. Is there a way to move them at once instead of copying with ssh?
4
votes
4answers
7k views

How do i transfer files over ssh after sudo?

I have access to a box over ssh and there are some files i'd like to transfer to another machine, but those are only accessible under another account so if i ssh with 1, then sudo 2 i can browse them ...
4
votes
4answers
3k 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
22k views

How to fix Permission Denied (Public key) error?

While trying to communicate between my desktop Ubuntu 12.10 and Fedora 19 desktop, I am facing the error of Permission Denied (Public key). I am able to login through ssh from fedora to Ubuntu, but ...
4
votes
2answers
3k views

How to check “apt-get upgrade” status after losing ssh connection?

Usually I upgrade my Ubuntu installation through a ssh connection. Sometimes this ssh connection would be lost or I would accidentally close the terminal window. It is possible to check the upgrade ...
4
votes
2answers
3k views

Disable interactive SSH at user-level

I connect to a server I don't control via SSH. I use public key access and don't need to be able to connect with a keyboard-interactive password. I would like to disable keyboard-interactive access ...
4
votes
4answers
2k views

X Server for Windows?

I'm going to accessing my ubuntu machine remotely from my windows machine through putty. Are there any suggestions for possible ways to get an X server running on my windows machine? Thanks.
4
votes
2answers
249 views

Map a key to open terminal and execute commands

I want to map a key, say ctrl-shift-m to open a terminal, ssh into the mailhost, open pine and go into the compose mail pane. I already have ssh-key setup so i dont have to type my password while ...
4
votes
1answer
1k 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 ...
4
votes
2answers
648 views

Cannot SSH/SFTP to remote server without using another remote server

I can access a server A with SSH, and from there I can access server B, but I can't access B directly. Is it possible to open a Nautilus folder in server B by clicking in Places → Connect to Server?
4
votes
5answers
20k 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
1answer
2k views

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

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 ...