Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

learn more… | top users | synonyms

5
votes
3answers
4k views

Command executed via ssh does not return proper return code

Why this does not work? $ ssh vm "bullshitcommand; echo $?" bash: bullshitcommand: command not found 0 I expected non-zero return code.
0
votes
3answers
635 views

Upgrade Python from 2.6 to 2.7 on Centos 6.5

I want to update my Python version on server, my current Python version is 2.6 and I want upgrade it to 2.7. Plesk is installed in our server and I also have access to ssh. How can I upgrade it in ...
0
votes
1answer
446 views

Is it possible to save the session password in MobaXterm?

I always start up ssh at the start of a work day. MobaXterm asks me for a passphrase the first time I open a terminal for a saved session. Is it possible to save this password so that I don't have to ...
3
votes
3answers
42 views

How does ssh choose the correct key to use?

How does ssh-agent understand which key should it use for which remote server? I've came across different questions and posts that touches this topic somehow, but it still remain unclear to me. What ...
6
votes
5answers
26k views

How can I get an SFTP server running on Windows 2008?

I have a remote Windows 2008 machine and the task at hand is to share out parts of its filesystem via SFTP for a single user. Were commercial software an option things would be easy but I want ...
0
votes
3answers
69 views

SFTP server for Windows with its own users and folders?

anyone knows if there's a SFTP server for Windows, with these features? 1. sftp users db is separate from windows users (preferably a simple text file with user/password pairs or some kind of db with ...
1
vote
0answers
25 views

way to automate git repositories cloning

I have to clone several repositories on the VM-s and then building software on them. I have pretty nice build script but there is one issue. Before build, several repos should be cloned, and after ...
0
votes
1answer
13 views

SSH: fails with a private key, works with a copy of this same key

I want to establish a SSH connection between two Linux machines: client & server. I am using root account on both machines, and their linux distro is CentOS 7. I generated a pair of ...
2
votes
2answers
7k views

Permission problems with rsync

I wanna do daily ssh synchronization of some of my local machines files with my server. I want to do this via rsync, since it sounds the most promising tool for this task to me. Sadly I get the ...
3
votes
1answer
18 views

Why are key agents sometimes preferred over configuration files?

Some programs seem to prefer to use an SSH key agent, rather than specifying the key file in some configuration file somewhere. Examples: GitHub's instructions for using SSH SourceTree's method ...
1
vote
1answer
31 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
22
votes
5answers
15k views

“Bad owner or permissions” error using Cygwin's ssh.exe

I'm trying to use ssh.exe in Cygwin (in Windows 7). I copied a config file into c:\cygwin\home\[USERNAME]\.ssh. When I run ssh (for example, ssh -vT git@bitbucket.org) I get the following error: ...
1
vote
1answer
16 views

ssh forwarding to guest vm on Mac

I would like to know the ssh command for the following diagram: such that I can type telnet <osxipaddr> 7777 on external computer and have it connect to the program listening on port 1020. I ...
2
votes
1answer
20 views

Centos Sftp Ssh - How always create files with rwx-rwx-r-x and always owned by a certain group

I have a user myuser, which is only allowed to connect to ssh via sftp. I'd like this user to always create files with rwx-rwx-r-x and always owned by the group apache. I've tried to accomplish the ...
1
vote
0answers
22 views

SSH into a VirtualBox VM that was configured via command line

I am trying to set up a cluster of VMs on my Ubuntu laptop so that I can test some distributed code. My goal is to execute a shell script that will spin up the configuration and another script to tear ...
0
votes
0answers
11 views

Sharing socks proxy connection over a 2nd NIC

I'm trying to accomplish the following: I have a server with two NICs One is wireless (wlan0) made as an access point (using hostapd) and the other one (eth0) is connected to a network that doesn't ...
1
vote
1answer
41 views

How can sshfs be made more reliable?

I use sshfs to connect the filesystem on my computer to that of my web host. I find that after a few hours of being connected, the sshfs becomes unmounted and synchronization no longer happens. Is ...
0
votes
0answers
19 views

/dev/pts not being mounted during boot

After I installed cryptsetup on EdgeRouter Lite running ubnt-debianwhen I try to connect using ssh I get the following error message: PTY allocation request failed on channel 0 The workaround that ...
0
votes
0answers
35 views

fstab ssh mount eating network and CPU

I've recently bought a NAS (WD MyCloud) and connected it to my router. I'm able to see it on the network and connceting through SSH. I was also able to put an fstab entry to automount a folder in my ...
72
votes
4answers
186k views

How do I exit an SSH connection?

I’m connecting to a server via SSH to send a message to a socket server using a command like: ssh 181.169.1.2 -p 5566 After the connection is established and I write the message and send it I ...
0
votes
2answers
318 views

Mac OS X host OS not able to ping Windows 7 guest OS on VirtualBox VM

I have Mac OS X 10.10 (Yosemite) as the host machine, I have installed VirtualBox and created a virtual machine with Windows 7 64-bit. I have created 2 network adapters on the virtual machine, shown ...
33
votes
3answers
44k views

SSH: execute sudo command

I have an interactive shell script, that at one place needs to ssh to another machine (Ubuntu based) and execute something as root (the user should enter his password, but the remote command should ...
0
votes
1answer
30 views

copying ssh id from debian to centos times out, how to debug?

I'm setting up another pc on my network. it will eventually be headless. It currently boots into the centos CLI ~ which is fine. now i want to copy over my ssh rsa key from my main debian pc to the ...
0
votes
1answer
32 views

connection refused for vagrant ssh

I am having trouble connecting to my vagrant box using vagrant ssh. There are no error messages when running vagrant up, I can also connect directly using the VirtualBox ui. When I run vagrant ssh I ...
0
votes
1answer
21 views

ssh passwdless failed after add id_rsa.pub to remote machine

My remote machine has 2 users one is root and another is Alexander. And I create a new user fit with root user. # adduser fit And I scp the id_rsa.pub of my home machine to fit@remote_machine and ...
-1
votes
1answer
39 views

I can Telnet into a Linux CentOS system but cannot SSH into it. My colleagues say they can SSH into it

My company has a server (server A) in a data center belonging to a telecoms company. The server has no access from the internet. I need to access this server because of a server application that I am ...
0
votes
1answer
50 views

SSH port forwarding works only with Source port Any

I am trying to setup port forwarding for SSH so I could connect to my raspberry pi from another network. I have these pages in my router (DRG-A125G): It works only if I specify Source port Any ...
0
votes
1answer
169 views

how to make non-root user to ssh using key instead of password?

I've recently purchased the Synology NAS 215j and having problems with SSH. Root user works as expected I've added my public key to /root/.ssh/authorized_keys... Problems with non-root user: sshd ...
16
votes
5answers
11k views

Getting Pageant to save keys files?

I'm using Pageant (on Windows 7) to login to SSH connections with private keys .ppk files. However each time I start the program I have to add all the keys I want again and enter their encryption ...
1
vote
1answer
107 views

Running commands remotely through an RDP connection

This question is a follow up of this one. I am trying to run a command through the command line on a remote machine running Windows 7 from a workstation running Debian in an SSH session on that ...
2
votes
0answers
85 views

SSH tunnel and corporate proxy

The scenario is as follow: 2 computers (PC1 & PC2) Both access internet using an HTTP Proxy that requires authentication. I ssh to PC2 from PC1 using: ssh -D 8080 user@PC2_IP -v The tunnel is ...
-2
votes
2answers
124 views

Connection refused when trying to SSH. But port 22 is not blocked. Pings work

Connection refused when trying to SSH. But port 22 is not blocked. Pings work. I'm running CentOS 7 VMs and open source Docker. I want to SSH to Docker containers from other VMs or other Docker ...
0
votes
1answer
216 views

SSH Client Closes Connection

I'm attempting to establish 2-way SSH communication between a MacBook (192.168.1.3) running OS X 10.9.5 and a desktop computer (192.168.1.2) running Korora 23 (basically Fedora 23 with additional ...
0
votes
0answers
81 views

Unable to SSH to windows machine from a linux machine

I am trying to SSH from a linux machine to a windows machine.I followed below steps to do the same. Installed Win32-OpenSSH on the windows machine and set it to automatic mode. Generate a key pair ...
8
votes
4answers
10k views

Windows equivalent of ssh - how to connect to a remote machine and access command line?

I'm having a difficult time coming up with a solution to extend a framework that was designed for *nix machines over to windows. The framework currently runs from one *nix server and ssh's out to ...
0
votes
0answers
16 views

Need to tunnel a AWS server using port forwarding

I am having a AWS server and I am connecting through a AWS router. I gave the example here, ssh -i ~/ecserver.pem ec2-user@ip -p 2222 Now I have to create a tunnel to the server for 9093 port in ...
1
vote
3answers
2k views

Synology SSH Root password does not work

Last night my Synology upgraded to a new version and now my Root password when logging in to SSH no longer works. I have already tested and I can login to other SSH accounts and I can also login to ...
4
votes
1answer
70 views

Can't add ssh keys to gnupg-agent anymore

I had several old ssh keys in my ~/.gnupg/sshcontrol so I removed all lines in this file and rebooted my computer. Now, I can't add ssh keys to gpg agent anymore: $ cat ~/.gnupg/gpg-agent.conf ...
0
votes
1answer
18 views

Ssh and ipv6: resolution

On my /etc/hosts i made some ipv6address fe80::ee01 hpux.ipv6.private hpux fe80::ee03 slack64.ipv6.private slack64 I do ssh -6 fe80::ee01%br0 OK if I do ssh -6 ...
0
votes
0answers
17 views

Mathematica: Resuming SSH evaluation with XMing

I am re-asking this question since it exactly applies to my situation and it had received no answers earlier: I currently run my Mathematica on a linux computer through Putty and Xming. Xming ...
0
votes
0answers
15 views

Open SSH / missing files

Confession! I don’t know what I am doing! At least I am at the edges of understanding what has happened and what I might be able to do to put things right. A couple of weeks ago we had a power cut. ...
0
votes
0answers
20 views

Public key authentication on openssh for windows can't open authorized_keys

I'm testing out the openssh stuff for windows and I'm having trouble getting public keys to work. I have followed most of the instructions here and I've generated the necessary keys on my other ...
1
vote
1answer
20 views

Creating bridged/forwarding proxies/tunnels via an intermediate machine to get around a VPN block to connect to a work machine

I'm not sure if my question makes sense, but I'll try to describe what I'm trying to do. I have three machines A, B, and C. A is a work machine that is not exposed to the outside world. B is my ...
0
votes
2answers
25 views

Port Forwarding Raspberry Pi doesn't work

I configured my Cisco Router to use Port Forwarding for ssh connection to Raspberry Pi and to apache server. There are some screenshots of router: This is from ifconfig of my Raspberry eth0 ...
0
votes
1answer
28 views

Using the key of a computer that I connected to via SSH?

I currently have a system where I'm using a desktop to connect to a gateway and then to multiple servers from there. The ssh key of my desktop is in the gateway and the other servers, and I'm running ...
11
votes
7answers
13k views

How to edit known_hosts when several hosts share the same IP and DNS name?

I regularly ssh into a computer which is a dual-boot OS X / Linux computer. The two OS instance do not share the same host key, so they can be seen as two host sharing the same IP and DNS. Let's say ...
0
votes
0answers
24 views

Port forwarding with multiple clients

I have an embedded system which runs several services on different ports. For example: web server on port 8080, ssh on 22, websocket on 5000, other TCP channels on 5001 and 5002, etc... The SBC is ...
0
votes
1answer
33 views

How to access an ssh server that can't accept incoming connections

The server is current running bitvise SSH (I can readily switch to another solution), it is behind a firewall that blocks incoming connections (I can't open it because of reasons). I have a computer ...
0
votes
0answers
40 views

Remote Desktop + Ubuntu: Keyboard issues

UPDATE: Got xrdp set up on the ubuntu system, and am now directly connecting to it via Remote Desktop... and it's got the same exact problem. Backspace, alt-keys, etc all work, but regular letters and ...
0
votes
1answer
66 views

SSH Find current LOCAL MACHINE directory

I am attempting to upload a file from my local machine to my server using: scp Users\MyName\Desktop\myzipfile.zip user@host:/path/to/whereyouwant/thefile I have a zip file on my desktop that I am ...