How can I access a computer on the LAN via command line


Recommended Posts

I have a simple command that I need to run on the CCTV computer, but I can not access the 192 address via the command line. Short of mapping the drive to the local machine, is there any other method for doing this?

I'm not 100% sure, but I think you need to set that up with your CCTV's OS.

 

Telling us the version of your device(s) might help us. Just wait for BudMan..

You should be able to use pushd for that

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pushd 

 

E.g.

 

> pushd \\192.168.1.2\my-folder

 

It should be noted though, it does end up mapping a network drive (such as Z:) to that directory.

Presuming your CCTV computer is running Windows 10 1809 or later you can enable OpenSSH: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui

 

Then from your main computer open the Command Prompt or Terminal and type "ssh username@192.168.x.x" to connect, you should be asked for the password of the account you are connecting to.

 

Once connected you'll have command prompt access to your CCTV computer.

  On 31/08/2022 at 09:39, virtorio said:

You should be able to use pushd for that

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pushd 

 

E.g.

 

> pushd \\192.168.1.2\my-folder

 

It should be noted though, it does end up mapping a network drive (such as Z:) to that directory.

Expand  

Thanks, that semi-worked, I get the error "Access Denied" when using that however, and if I browse to it via explorer, I see the shared folder, but also get access denied

cctv.PNG.f8e40055a93781947ab7d1bd8bbdd57e.PNG

Edit, when I attempt to map the folder to my local machine and login with the credentials for that system,I get this:
map.PNG.db830254a14c0ebb1d0a4285c1376dea.PNG

Edited by jnelsoninjax

Well whatever account your authing to this machine with has to have permissions.

 

Normally the simple solution is to just make an account on this machine that matches your machine you will be accessing from account.

 

So if you login to your pc with jnelsoninjax with a password of password.  Then create a user on this machine jnelsoninjax with password as its password. Where this account on the cctv computer has the permissions you need to do what you want.

 

ssh, psexec and pushd all would be viable solution, also don't forget just remote desktop, and then run the command after you remote desktop to the machine. But to use anyone of those options, yeah your going to be able to auth to the machine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.