SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

0
votes
1answer
1k views

Use remote ViM clipboard from iterm2 on Mac OS X

I have been using VNC for a long time for development and now I decided to move to iterm2 and screen. But there is a small problem. I have to ssh into a remote machine and use vim there. And I want ...
2
votes
0answers
417 views

Why is my /etc/hosts.deny file being ignored?

I am using a small embedded linux setup generated by buildroot to run on a x86 device. It was generated to use busybox init system and also runs dropbear so I can ssh into the device. I wanted to ...
4
votes
4answers
460 views

Continue for loop by keyboard

I have user account on a linux machine which I do not know its exact IP address. But I know a range which it is ran on one of them. I want to check which server is my desired server. There are some ...
1
vote
0answers
146 views

ssh log sent to email in Cygwin

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into ...
14
votes
2answers
3k views

Will my MySQL query continue to run even if my ssh connection drops?

I've connected to a server over SSH and logged in to mysql, and asked it to run a query (the results of which are dumped into a CSV) that could take well over an hour. Although I have instructed my ...
0
votes
3answers
302 views

the difference between '..' and “..” when I use ssh usr@ip 'pscp …'

My Server machine run Window,and it installed Cygwin. My Client machine run linux. In Clinent machine.I do this: [sikaiwei@login-1-2 v1.4]$ bash test.sh CHUN~19900405 ...
2
votes
0answers
936 views

Get screenshots of a Linux machine that I connect to remotely with PuTTY

My setup is this, I connected my Cent box via PuTTY on windows 7, I've Xming and using X11forwarding to have GNOME in windows. Now when I did gnome-screenshot in putty, I cannot have the CentOS ...
1
vote
1answer
67 views

Get current output

This just crossed my mind. Let's say that I'm operating a remote machine via SSH and I executed a make command to, e.g. build a new kernel for my machine. While I'm logged in that session, I can see ...
5
votes
4answers
15k views

Not able to ssh to another computer, but can ping it?

Unable to ssh to another computer but can ping it? Not sure what I am missing? Using a Netgear router bash-3.2$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ...
1
vote
1answer
230 views

Copy files via a complex ssh connection?

Suppose I have host A from which I ssh to host B, where I sudo -U some_role and from under it ssh to host C. My goal is an interactive shell on C. Assume that from C I cannot ssh back to A. What is ...
6
votes
2answers
4k views

How to Provide login delay in ssh

I wanted to provide login delay while login through ssh .I tried couple of ways of doing same but couldn't find desired result. I tried steps provided by given link. ...
2
votes
2answers
136 views

SCP files from machineB to machineA

I am trying to scp the files from machineB to machineA. I need to run the scp command from machineA to copy files from machineB to machineA. The file that I need to copy from machineB is - ...
6
votes
1answer
6k views

Command : must be run from a terminal

I have a shared hosting account, I logged using ssh. when I type for example su I had this output : su: must be run from a terminal Is this error relative to the fact that I don't have sufficient ...
2
votes
3answers
2k views

How to do svn update without password on crontab [closed]

I'm new to svn and ssh. I'm trying to do svn update of 5 repositories in my local system every 3 hours on crontab. So, to achieve this I have setup ssh passwordless login using the below steps: ...
0
votes
2answers
3k views

How to give password directly while doing ssh command?

I am using Putty to connect to host xxxxxx. I want to produce a shell script in which I should give the command ssh user@yyyyyy along with my password instead of giving it when prompted.
4
votes
1answer
619 views

Executing a remote command on SSH connection, before login

I am trying to find a way to execute a specific command when connecting to a server via SSH. By this I mean, the command will execute unconditionally on opening a connection, so this would preferably ...
3
votes
1answer
1k views

Download a file from a remote machine while SSH'd into it? [duplicate]

It often happens that I'm SSH'd into another machine and I'd like to download a file onto my local machine without having to open a new terminal and scp. For example, something like this: local $ ssh ...
3
votes
2answers
570 views

Auto restart ssh session after sleep

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels. The Gnome Terminal window is ...
3
votes
2answers
928 views

Reconfiguring GNOME keyring daemon

I have a really strange problem when using GNOME keyring daemon. I had an old SSH key which I've now retired and started using a new, stronger keyfile. However, every time I attempt to SSH into one ...
1
vote
3answers
2k views

What are the commands to apply changes made to /etc/ssh/sshd_config?

I have made some changes to /etc/ssh/sshd file and wanted these effects should take place. I know I can run below command for the effects to take place. /etc/init.d/sshd reload But on my box I ...
2
votes
4answers
468 views

ssh ncat keeps ncat process running after disconnect; how do I prevent that?

If I run the command $ ssh othermachine ncat localhost 10000 that opens an ssh session to "othermachine" and pipes it into an ncat process. (There's something else listening on "othermachine" port ...
2
votes
2answers
3k views

Use SSH to connect to a Windows OS in Linux [closed]

sorry,I reedit it.. In Windows machine ,I installed Ubuntu in my oracle vm virtualBox. In Ubuntu, if I want to connect to another Linux machine, I will write a command line in bash, like: $ ssh ...
2
votes
0answers
148 views

SSH + Certificate Authority server?

Is it possible to setup SSH (via pam for instance) to check the public key of the connecting client against a CA server? I've tried with gnupg (via gpg-agent --daemon --enable-ssh-support) and also ...
4
votes
2answers
3k views

SSH connection refused from inside my LAN

I'm on Fedora 19 and I have a problem with ssh. Ssh is up and running and I can connect when I enter my lan ip. But when I try my server name (blahblah.no-ip.org) I get a connection refused. No-ip is ...
12
votes
6answers
14k views

How to rsync over ssh when directory names have spaces

I am new to Linux and am trying to rsync from one server to another. The servers have the same directory structure but I am having trouble getting the remotes server to properly recognize the path ...
5
votes
1answer
2k views

What happens to a continuing operation if we do ssh and then disconnect?

I am moving one directory to another using mv command. However, I was forced to shut down my computer, which means losing connection to the server. What happen to the mv command? Note: After I ...
3
votes
1answer
242 views

Why starting firefox (from command line) in VM starts the firefox in the host machine and vice-versa?

I have a SLED 10 host machine and I am using a SLES 10 VM via ssh -X. When I start firefox in my VM using firefox & then it runs the firefox which is installed in the VM. So that's fine. ...
0
votes
1answer
7k views

Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push?

This problem is getting weirder. My original post follows, but here is the new thing I discovered: I executed git push and it gave me its usual error: Counting objects: 9, done. Delta ...
2
votes
1answer
2k views

undefined symbol in /usr/lib64/libGL.so.1 when using ssh

I frequently use ssh to a computer with redhat using the Y option so I can forward the windows. I always saw errors like this one /usr/lib64/firefox/firefox: symbol lookup error: ...
5
votes
1answer
1k views

ProxyCommand without socat, nc or Bash's TCP redirection?

ssh_config's ProxyCommand allows to establish some connection to a proxy prior to establishing the connection to the actual target machine. Simple question: how can I leverage the dynamic or SOCKS ...
5
votes
2answers
4k views

Kill disconnected SSH session running in `screen`

I'm always forgetting to logoff when ssh-ing somewhere. After I reopen my notebook, a screen window with this running ssh is unresponsive. I have to create another window, $ killall ssh, and only then ...
1
vote
2answers
487 views

Reverse socks5 using SSH

Setup: Server is a virtual machine Server have a local ip adress Server is restricted so that it can't reach the internet (not sure how) Client machine have access to both server via SSH Client ...
2
votes
2answers
446 views

Why I can't connect to VPS after changing OS from CentOS to Ubuntu?

Recently, I've changed my VPS operating system from CentOS to Ubuntu. Unfortunately since then I can't connect to my VPS. The following message comes again and again (screenshot attached). Why this ...
1
vote
0answers
275 views

sshfs and Emacs: file changed on the disk

I am using Mac 10.6.8 SSHFS version 2.4 fuse4x library version: FUSE 2.8.7 / fuse4x 0.9.2 I connect via sshfs to a remote cluster (via a bridge). I modify the remote files with emacs. The problem ...
0
votes
1answer
477 views

Changed /etc/ssh/sshd_config. Now can't get to SU. Am I screwed?

To allow one of my users ssh access I added the line AllowUsers user to my sshd_config. I gave the box a reboot and attempted to ssh back in as superuser. I was unable to do so. I have my keys- ...
-1
votes
2answers
73 views

How can I delete a file on client?

After copying files from /home/foo/bar the original files on the client must be deleted, EXCEPT for file /home/foo/bar/special_file. This file must remain on the client. I want to delete all the files ...
-2
votes
2answers
10k views

How to copy only the files of a folder(including subfolder's files), but not the folder itself in shell

In Openssh, On the client, the content of path/to/file must be copied to Server. All files in /path/to/file on the client must be copied to /path/to/files on the server. Note: only copy files, no ...
0
votes
1answer
165 views

Process substitution over ssh with sudo in Bash shell

What is the proper way to do something like this: diff <( ssh -t myuser@hosta 'sudo httpd -M') <(httpd -M) When I want to compare the output of the 2 commands, the first on a remote host the ...
2
votes
1answer
622 views

How to terminate an interactive ssh session after certain amount of time

In my /etc/ssh/sshd_config file I have set the below parameters: ClientAliveInterval 10 ClientAliveCountMax 3 Now from host machine I did ssh to the my server (where I made changes to ...
10
votes
3answers
5k views

Kill process spawned by ssh when ssh dies

This is a question that has been addressed several times, not only here, but also in other sites of the stack exchange network (e.g. ...
2
votes
3answers
901 views

How to execute applications in existing X window from virtual console?

I run Debian Wheezy and have Xfce as my X-Window Manager on virtual console 7, which starts up automatically. Once I've logged on and I'm using the xfce interface, is it possible for me to press ...
0
votes
1answer
158 views

SSH proxy laptop

I run a simple ssh proxy and I am always on the move with my laptop. Having to restart it every time I open the lid and connect to the internet. sshpass -p password ssh -D 9999 root@myvpsip Is it ...
3
votes
2answers
13k views

script to automate scp in network

I have a network full of Linux machines. In this network, I have a user as user1 with the password as password in all the machines. I have the following script to put files in the home directory of ...
4
votes
2answers
488 views

What effects does restarting sshd have on existing ssh sessions?

I've made some changes to the sshd_config. As I understand it, now I need to restart the sshd service. What happens to existing ssh sessions for the users? Any pointers to documentation I need to ...
2
votes
1answer
800 views

How to export a function in bash over ssh?

I would like to write a function in bash, then export that function and execute it over ssh. Is that possible, and if yes, how? I tried #!/bin/bash function myfunc() { echo $1 } export ...
3
votes
2answers
870 views

SSH through router to internal file server

This is a real beginner question, I know. But I really don't seem to be able to wrap my head around the terminology to get what I want working. And since I want to do this on a router that 40-50 ...
3
votes
2answers
136 views

SSH when to use public key and password?

I think I understand the difference between Public Key authentication and Password. But how do I decide which one to use and which one is most secure in what situation? Can anybody give me some real ...
1
vote
1answer
4k views

ssh into a server using .ssh/config alias & run an alias on the server in the same time

On my laptop Inside ~/.ssh/config file I have this: Host <serverAlias> HostName 127.0.0.1 #Server IP User <username> PreferredAuthentications publickey IdentityFile ...
1
vote
3answers
249 views

Wrong number of logged in users using “w”

There was a temporary network glitch and all user terminal ssh sessions were broken. Upon logging in to the CentOS server again and running the "w" command lists a higher number of users logged in ...
1
vote
2answers
117 views

Accessing Windows Box from Linux Terminal SSH

I am familiar with accessing linux from windows, but how can I go about accessing files on a windows box from a linux terminal via ssh? I'd like to stay away from RDP and just grab files via the ...