Tagged Questions

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

learn more… | top users | synonyms (1)

1
vote
1answer
370 views

Run single application with vnc

I would like to run an application on a remote ubuntu machine using vnc. Currently I have to ssh into the remote machine and run x11vnc Run vinagre locally Start the application in the vinagre vnc ...
3
votes
6answers
22k views

How to use sshpass?

I need to use sshpass to launch a remote command through SSH from a Java code. If I manually type in a console: ssh -p 22 user@ipaddress mplayer '/media/data/myFavouriteSong.mp3' works perfectly, ...
0
votes
1answer
422 views

SSH login wakes spun-down storage drives

I'm running 12.04 on a home server/HTPC, and have several storage drives which spin down using values set in /etc/hdparm.conf. Sometimes, logging in via ssh causes some or all of the drives to wake ...
0
votes
3answers
1k views

Can i configure ubuntu to append a domain to the end of an ssh hostname request?

I have many servers and they all end with the same servers.company.net, so for example vded-xx-001.servers.company.net, and was wondering if it is possible to make it so i can just type the ...
11
votes
2answers
31k 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 ...
2
votes
1answer
3k views

Nautilus' remote folder default mount point

I connect a remote folder in Nautilus (file info says that it is done via sftp), and within it the folder becomes fully browseable. But I can't access it from the other applications: I couldn't find ...
2
votes
1answer
7k views

Samba: how can I access a share on a Virtualbox guest (in NAT mode)

My OS: Windows 8 Virtualbox guest: Ubuntu 12.10 server I configured apache server on vbox guest and mapped http, https, ssh port successfully into ubuntu server. It works nice without any problem. ...
3
votes
3answers
1k views

How to setup SSH VPN in Network Manager?

I am using 12.10 and I want to setup SSH VPN via GUI in Network Manager, But it has only pptp and no other types to select. How can I fix it? any packages I need to install?
2
votes
0answers
295 views

A Linux container can use an authorized_keys file outside my home directory, but ephemeral containers based on it can't. Why?

In Ubuntu 12.10, I've created an LXC of type 'ubuntu' using the lxc-create utility. I then create ephemeral containers based on this container using the lxc-start-ephemeral utility, and I need to ...
2
votes
1answer
1k views

How do I copy files with SCP to /var/www?

I need to copy files from my computer to my server's folders in /var/www so they are uploaded to my cloud. Here's what I try to do: I open my computer's terminal and type: scp ...
1
vote
2answers
325 views

Need a simple, foolproof remote admin for Ubuntu Server

I'm running an Ubuntu server 12.10 box and need a foolproof remote admin for my wife/kids who have even less experience of linux than I. The box only runs as file server and our LAN Minecraft server. ...
0
votes
1answer
1k views

find -exec grep does not work

I need to use a find command in a script with ssh and grep together. Something like this: ssh user@host find /var/log -type f -mtime 1 -exec grep -i -F error warn {} \; But it says, that there is no ...
0
votes
1answer
333 views

How to rsync between home computer and computer inside another network?

All the computers I use run Ubuntu. To work from home, I SSH from my home computer to my lab computer as follows: # First a port knock is needed joe@homepc> telnet ssh.university.edu 9000 # Next ...
1
vote
0answers
286 views

Install git on ubuntu with lamp

i have Ubuntu 12.10 on my server and i need lamp on it, i want to use git on it - which i'm new to -... so I've read This article about how to install git , it says that i should have public ssh key ...
0
votes
1answer
173 views

SSH via Corkscrew - Where is the config?

I've read this page: http://www.ubuntugeek.com/how-to-use-ssh-via-http-proxy-using-corkscrew-in-ubuntu.html And it tells me to open up the SSH config file, which was in 2008, located in ...
0
votes
1answer
443 views

juju local error ERROR could not connect before timeout

juju -v status: 2013-04-07 18:11:20,888 DEBUG Initializing juju status runtime 2013-04-07 18:11:20,902:3553(0x7f739cef7700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C ...
0
votes
1answer
279 views

Cannot SSH into Kubuntu box without password

I am trying to set password-less logins to my desktop from my server so that a bash script on the server could scp backups over to the desktop. The desktop is running Kubuntu 12.10, and the server is ...
2
votes
1answer
137 views

Convenient method for frequent ssh

I frequently have to access the departmental servers while I'm off campus which requires: ssh [email protected] then enter password, then ssh private.school.com then enter same password ...
1
vote
1answer
1k views

How to acquire a remote host fingerprint that is not in known_hosts?

ssh-keygen -l -F host will print out the key of a remote host, but only if the host exists in known_hosts.Is it possible to request a fingerprint from a host that isn't in the known_hosts file? ...
0
votes
1answer
338 views

How to setup a file sharing service from ubuntu server over the net?

I have Ubuntu server edition that I ssh form on my mac and windows computers. I would like to know if there is any service I can install on my server that allows me to save and access my files from ...
3
votes
2answers
9k 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 ...
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 ...
0
votes
2answers
1k views

SSH terminal automatic resizing

Ubuntu installations (12.04 and 14.04) from the mini.iso (and not on Server or Desktop versions) result in the host providing terminal session that do not automatically resize themselves to the same ...
1
vote
2answers
1k views

How can I open port 22 for Sparkleshare?

How can I open port 22 for Sparkleshare? Every time I run dazzle create name_of_the_project (Sparkleshare) it gives the address but does no show the port as it should be. Example: it shows: ...
2
votes
0answers
96 views

who is scping your ssh server

Just you can run w to find who is sshing into your server, how can you find out who is scping into an Ubuntu laptop?
0
votes
2answers
233 views

Share Ubuntu between two computers and explore ubuntu

I have a Ubuntu 12.04 using the full hard disk in my laptop and a WUBI Ubuntu 12.04 using 30 GB in my desktop. Now I want to explore the networking features of Ubuntu. Like telnet and ssh. CLI etc etc ...
4
votes
2answers
294 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 ...
0
votes
1answer
389 views

Have set up a file server. How to make it accessible from anywhere? [duplicate]

I have installed xubuntu and made it a file server in my college using this guide. How to build your own file server Okay I am pretty new to these things, but I want to know a few things? 1) I ...
2
votes
1answer
72 views

Adding a question to keyboard authentication method in SSH server

I read this article about authentication methods for SSH This is what is written there? During keyboard authentication zero or more prompts (questions) is presented to the user. The user should give ...
1
vote
1answer
142 views

Samba only works if logged in over ssh

I have a headless ubuntu server running samba. I have a windows 7 laptop, windows 8 desktop, a lubuntu desktop running xbmc, and a samsung note2 running android. Whenever any of these computers has a ...
0
votes
1answer
109 views

Need help troubleshooting Apache inside VM

I'm hitting a wall troubleshooting this. I feel the problem is either due to my lack of networking skills, or a basic knowledge of configuring Apache. I'm hoping I can shed some light on my setup by ...
3
votes
0answers
367 views

What do these lines in the UFW logfile mean?

These lines are repeated several times, first one at the time when remote ssh connection with the machine is lost (mac address is the address of eth used for Internet connection) Mar 24 21:20:32 ...
1
vote
1answer
391 views

Strange behavior with ssh on Ubuntu 12.04 server

Recently I installed Ubuntu server 12.04 on my computer at home with ssh support. I'm using WiFi instead of cable connection for this server. Everything works fine except the fact that for some ...
2
votes
1answer
950 views

ubuntu 11.10 /var/log/auth.log

I use Ubuntu 11.10. And I want it to write logging messages about failed ssh log in attempts to /var/log/auth.log. In my understanding /var/log/auth.log is supposed to hold all failed ssh connection ...
1
vote
1answer
1k views

trying to use sshfs on ubuntu

i'm trying to use sshfs on ubuntu. i have root access on the server i'm trying to connect to. but everytime i try to connect using my ubuntu laptop, the message i get is the following: ...
0
votes
0answers
1k views

What to do after 'chmod -R 777 /'? [duplicate]

I have many file permission problems, as being a newbie, I unfortunately set permissions on everything somehow to 777 (chmod -R 777 /). I believe I've done this from the root directory logged in as ...
0
votes
1answer
247 views

how to use expect with bash

I Have created a shell script as given below.This script will login to a remote server as a normal user then switch to root user for creating a directory.The script is as given below. ssh -t ...
10
votes
1answer
8k views

How to use multiple ssh keys with different accounts and hosts

i have multiple ssh keys and i have also have account on bitbucket and github. how when ever i use pull it gives me error :/var/www/proj$ git pull origin master conq: repository access denied. ...
2
votes
0answers
282 views

Problem with applying socks proxy systemwide

i trying tunnel my traffic through SSH server. when i use Firefox network setting, it work well but when i try apply the socks proxy system wide from ubuntu setting and tunnel google-chrome traffic, ...
2
votes
1answer
7k 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 ...
1
vote
1answer
410 views

How to keep X-Server running via 'ssh -Y' after closing shell?

my name is Chris and i have trouble to run a Python-Script on a Server. I try to run a Python Script, that makes use of the Python module wx, on a Server. Therefor i open a shell connect to the ...
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 ...
2
votes
1answer
125 views

How to check if a file is already opened over ssh?

I have a PC with Ubuntu server and I use it with friends to program on a project over SSH. The problem is that sometimes we have the same file opened and if somebody changes something and saves the ...
2
votes
2answers
3k 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
2k views

Starting remote script/terminal based programs through ssh gives error (Error opening terminal: unknown.)

I directly start a remote script/command on an Ubuntu server with the following command: ssh me@server 'nano my_file.txt' However, this throws an error: Error opening terminal: unknown. Another ...
0
votes
1answer
937 views

connect to windows share automatically and rsync

I have a Western Digital connected to my router at 192.168.1.65 statically. How can I automatically connect at login and rsync? At the moment I am using this command that doesn't work. rsync -Paz ...
-1
votes
2answers
941 views

exporting X11 over ssh

I have a server sitting in a remote lab where I have installed openstack.I want to be able to access the xwindows on that machine so as to be able to use the http interface. I am running Ubuntu 11.04 ...
0
votes
1answer
4k views

ssh add bad passphrase

i have add public form another computer. on my computer i see the files in the ssh folder user@user-170:~/.ssh$ ls authorized_keys config id_rsa id_rsa.pub known_hosts known_hosts.old now i ...
2
votes
1answer
165 views

byobu, ssh and an accidently closed fluxbox

So i was using fluxbox and had a terminal using ssh to connect to a server. This server automatically starts byobu for everyone who's connecting to him. At least until i accidently closed my fluxbox ...
8
votes
1answer
13k 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 ...