Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.

learn more… | top users | synonyms

1
vote
1answer
361 views

Connect to Remote Host using ssh in Shell Script

I am trying to connect to a remote host from a local host using SSH and all I want to do using a shell script. I can do it with ssh hostname but the problem is for all hosts finger prints are being ...
0
votes
1answer
1k views

WinSCP sometimes throws error - Server refused public-key signature despite accepting key

I have a process scheduled to send files to an SFTP server (Tumbleweed) using WinSCP. It works 99.5% of the time. 0.5% of the time, the login fails and WinSCP reports: Server refused public-key ...
1
vote
0answers
125 views

Proxy inside SOCKS 5 proxy

There's a secure LAN with a computer in it. This computer is configured with automatic proxy settings. A .pac file is used for this. With this automatic proxy configuration the computer can reach all ...
0
votes
5answers
9k views

Cannot connect to VMWare virtual machine through NAT

I am currently reading Yahoo's Hadoop tutorial in here. I have installed VMWare player and running a virtual machine, as instructed by the tutorial. However, I cannot connect to my Guest machine from ...
1
vote
1answer
140 views

ssh key regeneration for github

I was playing about with ssh keys, and stupidly deleted the github keys in my .ssh folder. Now i get Error: Permission denied (public key) When i try and connect to a remote repo. I have ...
0
votes
2answers
335 views

Connect to SSH on server, and then see output from existing console sessionn

Once connected to an existing Linux server, is it possible to view the output of an existing console session running locally on the server (via KDE)? I've seen mention of screen in my research but ...
3
votes
1answer
413 views

Vim upside down question marks on whitespace

I've installed spf13-vim on my Vagrant machine with Ubuntu. The issue is that when I log into Vagrant with vagrant ssh and run Vim then I get all these upside down question marks on either making a ...
0
votes
1answer
214 views

Troubleshoot ssh -X a lot less responsive than VNC

I need to work on a GUI on a remote Linux (CentOs) server (I measured with iperf a ~8Mbits/sec connection between these two machines). I always used ssh -X instead of VNC for this since: I need to ...
2
votes
2answers
376 views

ssh backspace deletes one character instead of two (utf-8 symbols)

Im accessing a remote computer using ssh and running a bash command to input symbols using standard input stream: read test;echo $test It's ok to input english letters and use backspace to ...
0
votes
1answer
450 views

Enable .htaccess on ubuntu server

I am looking to enable .htaccess in my Ubuntu server, I have ssh access and have attempted: sudo nano /etc/apache2/sites-available/default and changing AllowOverride from none to all under directory ...
0
votes
1answer
386 views

How to verify SCP transfer was successful?

I'm using http://phpseclib.sourceforge.net/ to make an SSH connection to my server, then execute an SCP command to transfers to a remote server. The library's exec() method returns a string (looks ...
3
votes
1answer
1k views

Setting up sshd_config in cygwin for AES encrypted file transfer

I'm a bit newer to cygwin and sshd, and I want to configure sshd to allow encrypted SFTP file transferring. From what I understand, I need to find some sort of sshd_config example (which for some ...
0
votes
1answer
322 views

output of `svn status -uq` has no newlines in script

function runstatus { echo "SVN Status -uq:" echo status=$(svn status -uq) echo $status echo $bigline } This prints something like: SVN Status -uq: rd_backup ...
0
votes
1answer
132 views

Cannot SSH/RDP until after pinging URL

If, after starting system (freshly installed Linux Mint 13), I try to run: ssh mywebsite.com it hangs up with "Connection timed out". but when I open the browser and enter mywebsite.com there (or ...
0
votes
1answer
534 views

Get errorlevel in cmd script calling ssh

ssh -i private_linux_key user@machine "exit 1" || echo %errorlevel% This always prints 0. How can I get actual error code returned by ssh? || somehow detects that there was an error.
2
votes
2answers
208 views

ssh -D doesn't establish tunnel, it just connect as interactive session. Why?

I am trying to create a SOCKS5 tunnel, but for some reason using -D does not work. Here is an excerpt: laptop:~ localuser$ ssh -D 8080 -p 2222 remoteuser@remotehost.com remoteuser@remotehost.com's ...
0
votes
0answers
75 views

Connect to ssh server installed on a local domain

I installed on my Ubuntu 12.10 open ssh server and I'm trying to configure to access it from anywhere. The problem is that I'm on a local network and all the computers surf on the internet with the ...
0
votes
1answer
182 views

IPv6-connected FreeBSD server is not available via LAN

My Setup I have a FreeBSD server with the following output of uname -a: FreeBSD glacier 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 ...
1
vote
2answers
1k views

SSH ignores keyfile, wrongly asks for password

For work, I am SSH-ing into a server. I haven't done this for months, so something has changed where it now asks me for a password. Previously, after authenticating it would work. Here's what I ...
5
votes
1answer
2k views

Can I change the filename of my ssh public/private key pair?

I created a public/private key pair: ssh-keygen -t rsa -C "me@example.com" I gave a different key file name than id_rsa since I wanted to create a new separate key from my normal identity. I gave ...
1
vote
3answers
796 views

linux routing outbound port 80 traffic via ssh tunnel, iptables, or a simple route

I have two hosts, A and B. Host A hosts services on port 8080 and has outbound internet firewall rules allowing port 80 and 443 access to Host C. Host B is on the same subnet as Host A. Host B is ...
0
votes
2answers
488 views

Script to auto execute creation of ssh tunnel

I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here. I'm on a Mac, connecting to a linux machine. I can set up ...
1
vote
1answer
376 views

Run GUI outside of SSH session

I am trying to run a GUI application (if only it weren't GUI...) over SSH, but I want it to port the application to the native X session and not the SSH session. That way, when I close the SSH ...
0
votes
2answers
132 views

Disabling SSH passwords for all users except one

It's easy enough to disable password authentication for SSH as a whole, but is there a way of allowing one user on the system the ability of logging in with a password? The reason for this is we have ...
0
votes
1answer
882 views

how do I preserve export PATH?

How can I make ssh admin@nas command work if command is in /opt/bin? On my QNAP NAS File /root/.ssh/rc: echo "old path is $PATH" export PATH=/opt/bin:/opt/sbin:$PATH echo "new path is $PATH" on my ...
0
votes
2answers
527 views

Access company intranet (http/https) using SSH (AllowTcpForwarding might be set to “no”)

How can I access web services inside my company's LAN from the outside? I can SSH in to a machine that's inside the LAN. I tried to use Putty to set up dynamic port forwarding and configured Firefox ...
4
votes
1answer
962 views

Why does redirection fail when passing through ssh, sudo and sh?

After reading this question, I know that I have to do sudo sh -c 'ls -hal /root/ > /root/test.out' to avoid the "Permission denied" error. But when I do ssh hostname sudo sh -c 'ls -hal /root/ ...
2
votes
1answer
39 views

Linux command for creating/leaving/returning to shells

I was using a command a long time ago to manage my background processes and I can't remember wich one. I had to install it. I could create a shell and go into it Run a process Leave the shell with ...
-1
votes
1answer
745 views

how to run a program with root privilege in a remote linux host

I want to run a program on many remote hosts these program may run serveral hours and it needs root privilege I have uploaded the program to those remote hosts I can only ssh into those machines ...
0
votes
2answers
355 views

Why does my ssh session terminate immediately?

I have a debian machine, where I have difficulties to log into via ssh. Executing commands on the server over ssh is no problem -- just I get no prompt, but the connection is terminated again: > ...
1
vote
2answers
172 views

Vnc and ssh tunnelling not working

I am trying to access my work computer (server C) via vnc. I have root on this machine. I can't access it directly so I have to go via server B. I have done the following steps. First on my local ...
1
vote
1answer
2k views

The `ssh-keygen` command is not installed in Arch Linux and can't find it in AUR or official packages

As the title says. For some reason ssh-keygen is not installed on my install of Arch Linux, and I can't seem to find it on the AUR or the official packages repository. How would I go about obtaining ...
1
vote
0answers
57 views

virtual filesystems appear to be limited on win32 build of Midnight Commander

I installed Midnight Commander 4.8.7 on my windows machine at work. 2 of the features that I would love to use are the virtual filesystems for zip files and ssh. But the only virtual filesystem that ...
1
vote
2answers
233 views

tmux session not resuming to the same from different entry points?

I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to ...
3
votes
4answers
1k views

Running sshfs as user via autofs

My situation: There are several servers on my LAN which I do not administer I access them using SSH for sshfs, shells, and remote X11 apps I have set ControlMaster auto in my ~/.ssh/config file so I ...
1
vote
3answers
4k views

Opening Browser in remote machine through ssh [ CLOSED ]

I need to open browser with specific url using ssh through a remote machine, i have enabled password less connection, i am able to get command o/p which run on remote machine using ssh, but how can i ...
1
vote
1answer
54 views

Is it possible to access x11 clipboard in a untrusted X11 client?

How can I access x11 clipboard in a remote untrusted client(ssh x11 forwarding)? All I need is the x11 clipboard and I don't want to enable trusted x11 forwarding(which would give the remote client ...
1
vote
1answer
99 views

Found this logentry on my server in the cron.logs, seems to be a hack-attempt, any suggestion for further proceeding?

Here is a logentry, which was executed: mkdir /root/.ssh/;echo "ssh-rsa <some unkown public-key> > /root/.ssh/authorized_keys I'm guessing that I was hacked. Any advice for cleaning up ...
2
votes
1answer
221 views

SSH tunnel in Putty says “address already in use” but that's not true

I've configured a putty session from Lubuntu to a VPS on the Internet via a proxy server. The connection to the VPS is correctly established, but the tunnel isn't. This is the tunnel configuration: ...
0
votes
1answer
129 views

How to regain control over Terminal after waking computer

I'm using Mac, but I don't know if this matters. Anyway: In Terminal, do SSH to a remote host. Close lid. (The network connection is cut off at this point). Wait. Open lid again. Some times, the ...
0
votes
1answer
122 views

Where do I store sshfs configuration settings?

When using sshfs several sites recommend using options like: -oauto_cache,reconnect,defer_permissions,negative_vncache,volname=RemoteHome I tried adding these in ~/.ssh/config under the hostname: ...
4
votes
1answer
4k views

Virtual Box ssh not working on Virtual Box Ubuntu machine

I have Ubuntu 12.10 installed, and 12.04 Server set up in my virtual machine. My VM has internet access, and I can ping it from my host. ping symfony.dev # points to 192.168.56.101, and successful ...
3
votes
1answer
1k views

ssh port-forwarding with GatewayPorts = no

I want to forward sshd (port 22) on machine X which has a non-routeable IP. The forwarding options are nc (which is horrible), inetd (requires privs), iptables (requires privs) and ssh. So I'm using ...
0
votes
1answer
22 views

Unable to keep remote job running on OS X

I just got a MacPro and am trying to work remotely on it. But when I ssh into it and start a job, put it in the background, and log out, the job apparently goes to sleep. So when I log back in and ...
1
vote
1answer
905 views

Is there a way to not override existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file. However I don't want the files in the destination folder to be overridden. This is what i have: set /p address=ip address: ...
0
votes
2answers
1k views

Internal and external ip

How to find the internal IP and external IP of a linux server by connecting to it using Putty? Secondly, what is the IP address given by the echo $SSH_CLIENT command, is it internal or external? My ...
2
votes
4answers
958 views

A decent remote shell from UNIX to Windows? [closed]

I'm on Linux and develop on a Windows 7 box virtualized via VirtualBox. My usual way of developing consists in editing source files from Linux via nautilus/SMB (smb://192.168.1.4/...) then when I'm ...
3
votes
1answer
517 views

SSH: “no such identity”

I'm having a very peculiar problem getting SSH to work on my Linux box. I have a passwordless git user identified by an OpenSSH key. If I attempt to ssh into it from either the same or a different ...
2
votes
0answers
369 views

SSHFS graceful degradation instead of freeze when connection is lost. Is it possible?

A third-party program will write files to a SSHFS mounted dir. If the internet connection is lost, the third-party program will likely crash (badly), because all programs trying to access such an ...
2
votes
3answers
488 views

Can't SSH to AirOS

I get wireless Internet connection with device called "air OS". I can access it through the webpage, and from there enabled SSH access. However, trying to SSH in is not working (using this command): ...