0
votes
3answers
23 views

How does UNIX know which private key to look for?

I have a public/private key pair. I put the contents of my public key into my server's .ssh/authorized_keys file. When I SSH into it, it automatically recognizes my key and lets me in. However, if I ...
0
votes
2answers
49 views

Unable to SSH, cannot create /dev/null/.ssh

I am trying to deploy hadoop with a master and slave node. But the master fails to start tasttracker and datanode processes in slaves, as it is not able to ssh into slaves. The error message is 'Could ...
0
votes
0answers
8 views

Fail all login attempts from an IP address or IP range [duplicate]

I am noticing a large number of failed login attempts from a range of IP addresses (starting with 117.) How can I automatically fail all login attempts from this range?
0
votes
2answers
50 views

using url with Putty to access Unix server

I need to access UNIX server from my windows machine and will be using PUTTY. Can I access the UNIX server with the url rather than direct IP address? I am getting error that host cannot be found ...
0
votes
1answer
27 views

how to get the status of commands executed inside ssh connection

I have an ssh connection where I am running 2 commands. I want to know the status of each command after execution. the code is like below: ssh $username@$server -t <<'XXX' command 1 command ...
0
votes
2answers
109 views

Pass-through account login through WinSCP [duplicate]

I have a Linux server, where when I connect by PuTTY, I first need to log in using a non-root account (let's say user1), and then issue the command su root or su - root to log in to the root account. ...
1
vote
3answers
101 views

The system cannot find the path specified

Here is my situation. I have a Windows server box and a Linux box. On my Windows server I have Sharepoint installed and was able to access the shared directory through the Windows command line by ...
0
votes
2answers
22 views

Head of ssh file resource

Sort of an odd question, but is there some way that I can operate on remote resources as UNIX files? E.g. I'm looking for some way to do tasks like the following: head ...
0
votes
1answer
33 views

scp file with spaces in it

I have a file called test file.txt on machine 1(windows). I am trying to get this file over scp to machine 2(Linux). setenv fileName "test file.txt" scp user1@machine1:C:\Folder\$fileName ...
0
votes
1answer
25 views

What is the keyword in .ssh/config for tunneling in the background?

In command line option, we can specify -N -f to let it run in the background. How about the identical keywords in .ssh/config? Instead of doing ssh dest -N -f -L 1337:localhost:1337 I would like to ...
0
votes
2answers
127 views

which unix or linux command is used to change root password of remote machine(Just an IP address) without using SSH Login

which unix or linux command is used to change root password of remote machine(Just an IP address)? Suppose I just have an IP address of the target machine which is on my network, But I do not know ...
0
votes
0answers
34 views

Windows client that can SSH into a tablet running Unix via the USB cable?

Seems like there should be a solution to this : I run a Unix on my Android tablet. I take tablet to any old PC, and connect via USB. I open some kind of terminal program on the PC (eg. PuTTY, ...
0
votes
1answer
352 views

Sync multiple hosts using unison

I am trying to keep in sync three machines, on one of which I run unison to sync the other two. This 'star' architecture is advertised in the unison manual: Using Unison to Synchronize More Than ...
0
votes
1answer
115 views

How to run program on Unix server and then close SSH? [duplicate]

I need to run a long operation in MATLAB on a remote Unix server. But I know I won't be able to stay logged in via SSH the whole time. I am root/admin if that helps. How can I do this without losing ...
0
votes
0answers
294 views

Meaning of sshd's disconnection log messages

I got a series of messages like below in /var/log/secure and I'm curious about the numbers and the messages. Received disconnect from xxx.xxx.xxx.xxx: 11: Bye Bye Received disconnect from ...
0
votes
1answer
127 views

Pause SSH Session

I have long running processes that I just kick off. I create ssh and long-in into ssh session and create multiple screens and run all the programs and detached using (ctr + A + D). But when i resume ...
-2
votes
2answers
58 views

Shell variables. I'm new at this and having diffulculty

If the shell variable x has the value 5, and you reassign it with x="expr $x + 10", what is the new value of x?  What would have been the value if single quotes were used instead?  What is the most ...
0
votes
1answer
176 views

Unison profiles root/path issues

I am trying to sync two folders with each other (one local, one remote) using unison. If I use a standard command like this.. unison -times /Volumes/My\ HD/Work ssh://myremoteserver//volume1/My\ ...
0
votes
1answer
173 views

Tunneling to access a remote server: channel 2: open failed:

I've tried looking at similar articles here but they haven't helped. I am using a tunnel to forward traffic to port 8080 of a server using the following command: ssh user@ -L 8080:SERVER:8080 -N It ...
1
vote
1answer
535 views

How to backup a LAMP stack server

What's the best way to backup a LAMP stack from SSH (if this is even possible)? Is it possible to create an image file for a remote server somehow, and then use wget to download this? (I am thinking ...
0
votes
0answers
220 views

Failed to set permissions of path: ..\taskTracker\cyg_server to 0700

While running a job in Cygwin in Hadoop cluster, the permission failed. $ bin/hadoop jar hadoop-examples-*.jar wordcount inputwords outputwords2 Patch for HADOOP-7682: Instantiating workaround file ...
1
vote
2answers
240 views

ssh and cd into current directory

When I ssh into mycomputer from logincomputer, I would like to automatically cd into the current directory (the one from which the ssh command was executed) on mycomputer. In particular: > cd ...
2
votes
1answer
431 views

ssh and execute interactive command

I currently have a process where i login to a machine, need to ssh to another machine and then run a command for an interactive job (on a queue-ing system). Is there a way to do this all in one shot? ...
0
votes
1answer
158 views

How can I add a ssh host key in a client programmatically?

After installing a server, I want it to connect to a remote host and add its host key to ssh without asking for confirmation, inside a script. Can I do so by passing the expected fingerprint to the ...
1
vote
2answers
56 views

does this exist: UNIX box with ethernet and nothing else, all interaction is done by SSH'ing in

So I could sit this UNIX box by my router and all configuration would be done via local SSH. Then once it's set up, I could SSH in from the internet and use UNIX (and all the tools contained within). ...
0
votes
2answers
314 views

I want to open up my default SSH port (22) to see how many unauthorized access attempts I receive

I thought this would be a good place to ask this question: I want to open up my default SSH port (enable remote management in system settings and port forward my router) to see how many unauthorized ...
0
votes
1answer
46 views

SSH private Keys

I want to use a simple command to count the number of ssh keys in a users home folder, but would rather use the output from the /etc/passwd file as input. The find command is easy: find ...
0
votes
1answer
92 views

Read local file from remote ssh

I am running a script on a remote host using ssh hostA shell: cat script.sh | ssh user@hostB The script resides on host A and is run on host B using the above ssh command. So far it was good. But ...
-2
votes
3answers
595 views

how to transfer zipped folder from windows desktop to unix server without using tools like winscp

I'm a newbie to unix. My requirement is to create an automation script which will transfer a zipped folder from my/remote desktop to an unix server. Tools lik WinSCP shouldnt be used. No manual ...
0
votes
0answers
79 views

How to edit a remote file with implicit su-ing to another user on remote host

I want to edit files on Unix/Linux servers from my PC (running Linux and/or Windows). However due to security, I cannot log into the remote server as the file owner, but as my named user, then sudo su ...
0
votes
3answers
118 views

SSH and SCP giving error

I am doing the same steps (Perform SSH and SCP Without Entering Password on openSSH). But it keep asking password prompt while scp or 'ssh -l' command run. Same steps i did few days back, it was ...
4
votes
2answers
200 views

Wait until SSH succeeds creating a port forwarding

I am calling ssh (OpenSSH) from a OSX/Linux-C++-Application via fork/exec to create a dynamic port forwarding. This is done using batch mode (-o BatchMode=yes) and a private key which is supplied to ...
5
votes
2answers
3k views

Cygwin Connection closed by ::1

During the installation of Hadoop I am trying to setup CYGWIN and ssh. Installed and ssh also started successfully and setup authorization key as instructed HERE but When I try to connect to the ...
1
vote
1answer
2k views

CYGWIN SSHD service not starting

To setup Hadoop I am installing CYGWIN on my 32 bit Windows 7 machine. It has installed successfully without any error. CYGWIN Setup version : 2.774 $ uname -r : 1.7.17(0.262/5/3) SSHD installed ...
0
votes
1answer
240 views

How to make terminal title to stick on Macs

I'm not sure if this is a problem with my mac, of which I'm a noob with, or if it's a setting of the server I'm sshing into. What I'm doing is this: Open a new window in terminal SSH into a CentOS ...
0
votes
2answers
33 views

How to automatically remember the last path where I was? [*nix]

Is there any scripts or tools that can automatically remember and write down the path I am? I asked because, when I was remote accessing my campus cluster via ssh last night, they will log me out ...
1
vote
1answer
158 views

OS X - make ordinary SSH commands use SSH config

Here is a (somewhat redacted) listing of my ~/.ssh/config under OS X 10.6.8 Snow Leopard: Host * IdentitiesOnly yes Host foo1 IdentitiesOnly yes User foo1 HostName example.com ...
6
votes
2answers
325 views

How to connect to a SSH session that was backgrounded with -f -N?

I'm doing some work where I need to pivot off a machine using proxychains so I'm connecting to a system and binding a local port like so... ssh -f -N -D 9000 user@host.com … which returns me back ...
0
votes
1answer
44 views

X-Forwarding on server

It is possible to use X11-forwarding running on a common remote server without GPU ?
2
votes
2answers
2k views

Unable to do passwordless login to FreeNAS

I'm trying to use this command to allow me passwordless login to a FreeNAS box: cat ~/.ssh/id_rsa.pub | ssh root@server.com 'cat >> ~/.ssh/authorized_keys' But I get: ...
0
votes
3answers
313 views

Execution of the command of ssh with open/root/.ssh/id_dsa failed error: Permission denied

Working it agrees http://www.ibm.com/developerworks/ru/library/l-hadoop-1/ at first I entered into the user of hadoop by means of a command root@one: /volumes# su hadoop The invitation was as a ...
4
votes
1answer
1k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
0
votes
1answer
106 views

Tunneling from one unix server to other unix server using ssh

I am trying to connect one Unix server to another. Direct login is possible, but logging in through a tunnel is failing. I'm creating the tunnel connection using: ssh -N -f -L 6002:bsc2:22 ...
0
votes
0answers
136 views

SSH To My Home Server From Another Location

I am at a location away from home and behind a firewall that does not allow any connections and any ports other than specific port to a specific ssh server. I am using Windows 7 and putty. Trying to ...
0
votes
3answers
53 views

Perform shell operation through secure shell

Is it possible to perform a shell operation from a bash script through a secure shell. Here is an example of why you may want to do this. Lets say you have a simple unix operating system that you ...
4
votes
4answers
49k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
3
votes
1answer
66 views

Rsync with a little twist?

I have 3 drives. For this purpose, we will call them A, B and C respectively. A is 2 TB B is 1 TB C is 500 GB I have already run rsync -avz -progress A B Now B is full and I want to move/copy ...
1
vote
1answer
128 views

ssh into server behind a gatekeeper in one step (involving sudo) [duplicate]

Possible Duplicate: non-interactive ssh sudo… prompts for the password in plain text Here's the current workflow I have (already have some settings in my .ssh/config): scribu@localhost$ ...
0
votes
2answers
546 views

How can i use the `eject` command on a computer i have SSH'd into?

So if i do eject on my machine, it works exactly as expected, however, if i ssh into the machine next to me, and do the same thing, it does not work... my computer: eject: using default device ...
0
votes
3answers
2k views

how to run a local script in remote server using expect and bash script

I want to make a script that will connect to a server and do some CRUD operation on the server and again return to local. I do not want to upload the script to server.. I have made a script that ...